From f996cf74b88c7e312ae8298cda1dea3134f7d6db Mon Sep 17 00:00:00 2001 From: =?utf8?q?Uwe=20St=C3=B6hr?= Date: Tue, 19 May 2015 03:25:55 +0200 Subject: [PATCH] tex2lyx/text.cpp: set correct alignment for \makebox{test} also fix an indentation error --- src/tex2lyx/text.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/tex2lyx/text.cpp b/src/tex2lyx/text.cpp index 5652574244..32944aabde 100644 --- a/src/tex2lyx/text.cpp +++ b/src/tex2lyx/text.cpp @@ -906,6 +906,8 @@ void parse_box(Parser & p, ostream & os, unsigned outer_flags, inner_pos = "t"; } } + if (inner_type == "makebox" && !p.hasOpt()) + hor_pos = "c"; if (!inner_type.empty() && p.hasOpt()) { if (inner_type != "makebox") position = p.getArg('[', ']'); @@ -947,9 +949,9 @@ void parse_box(Parser & p, ostream & os, unsigned outer_flags, } } } else { - if (inner_type == "makebox") - hor_pos = "c"; - } + if (inner_type == "makebox") + hor_pos = "c"; + } } if (inner_type.empty()) { if (special.empty() && outer_type != "framebox") -- 2.39.2