]> git.lyx.org Git - features.git/commitdiff
tex2lyx/text.cpp: add a comment and fix a typo
authorUwe Stöhr <uwestoehr@web.de>
Sun, 6 Nov 2011 22:46:30 +0000 (22:46 +0000)
committerUwe Stöhr <uwestoehr@web.de>
Sun, 6 Nov 2011 22:46:30 +0000 (22:46 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@40152 a592a061-630c-0410-9148-cb99ea01b6c8

src/tex2lyx/text.cpp

index 611662af6d38cab9b3d32c9e5ffb3e0ff39af4eb..33bd530bb03110c9b9c760c8d28f4dd3cc4739c7 100644 (file)
@@ -798,6 +798,7 @@ void parse_box(Parser & p, ostream & os, unsigned outer_flags,
                latex_width = p.verbatim_item();
        // if e.g. only \ovalbox{content} was used, set the width to 1\columnwidth
        // as this is LyX's standard for such cases (except for makebox)
+       // \framebox is more special and handled below
        if (latex_width.empty() && inner_type != "makebox"
                && outer_type != "framebox")
                latex_width = "1\\columnwidth";
@@ -842,7 +843,7 @@ void parse_box(Parser & p, ostream & os, unsigned outer_flags,
                }
                p.popPosition();
        }
-       // if only \makebox{content} was used we can its width to 1\width
+       // if only \makebox{content} was used we can set its width to 1\width
        // because this identic and also identic to \mbox
        // this doesn't work for \framebox{content}, thus we have to use ERT for this
        if (latex_width.empty() && inner_type == "makebox") {