tex2lyx/text.cpp: a fix for \fboxcolor around \parbox and minipage

This commit is contained in:
Uwe Stöhr 2015-05-20 21:37:14 +02:00
parent 9e16608867
commit 437d0d2b10
2 changed files with 3 additions and 3 deletions

View File

@ -1523,7 +1523,7 @@ www
\begin_inset Box Boxed
position "t"
hor_pos "l"
has_inner_box 0
has_inner_box 1
inner_pos "t"
use_parbox 0
use_makebox 0
@ -1553,7 +1553,7 @@ www
\begin_inset Box Boxed
position "t"
hor_pos "l"
has_inner_box 0
has_inner_box 1
inner_pos "t"
use_parbox 1
use_makebox 0

View File

@ -1141,7 +1141,7 @@ void parse_box(Parser & p, ostream & os, unsigned outer_flags,
os << "hor_pos \"" << hor_pos << "\"\n";
if (outer_type == "mbox")
os << "has_inner_box 1\n";
else if (!frame_color.empty())
else if (!frame_color.empty() && inner_type == "makebox")
os << "has_inner_box 0\n";
else
os << "has_inner_box " << !inner_type.empty() << "\n";