]> git.lyx.org Git - features.git/commitdiff
tex2lyx/text.cpp: fix a bug I introduced with [c7a11c1d/lyxgit]
authorUwe Stöhr <uwestoehr@lyx.org>
Tue, 19 May 2015 00:29:16 +0000 (02:29 +0200)
committerUwe Stöhr <uwestoehr@lyx.org>
Tue, 19 May 2015 00:29:16 +0000 (02:29 +0200)
src/tex2lyx/text.cpp

index b3ad38c18235bd43f09d3683290f7c4950c7754b..616233c48b75ed5409cf924720ef7066dd8aee56 100644 (file)
@@ -1165,7 +1165,7 @@ void parse_box(Parser & p, ostream & os, unsigned outer_flags,
                        os << "use_makebox 0\n";
                else
                        os << "use_makebox " << (inner_type == "makebox") << '\n';
-               if (outer_type == "mbox")
+               if (outer_type == "mbox" || (outer_type == "fbox" && inner_type == ""))
                        os << "width \"\"\n";
                // for values like "1.5\width" LyX uses "1.5in" as width ad sets "width" as sepecial
                else if (contains(width_unit, '\\'))