mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-22 13:18:28 +00:00
tex2lyx/text.cpp: set correct alignment for \makebox{test}
also fix an indentation error
This commit is contained in:
parent
c3178903d4
commit
f996cf74b8
@ -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")
|
||||
|
Loading…
Reference in New Issue
Block a user