Uwe Stöhr wrote:
> commit 76b579ed3774fd6612e6172df67a7b83c344cc2d
> Author: Uwe Stöhr <uwesto...@lyx.org>
> Date: Sun May 17 18:12:20 2015 +0200
>
> tex2lyx/text.cpp: a fix for the horizontal box position
>
> - if nothing is specified, the box content is left aligned, except
> for \makebox where it is centered
This causes many differences in the tex2lyx tests (see attachment). Was the
old output incorrect? If yes, please fix the test references and describe
why it was incorrect. If not, please fix the tex2lyx code.
Georg
diff --git a/src/tex2lyx/test/box-color-size-space-align.lyx.lyx b/src/tex2lyx/test/box-color-size-space-align.lyx.lyx
index 3b3666a..4acce03 100644
--- a/src/tex2lyx/test/box-color-size-space-align.lyx.lyx
+++ b/src/tex2lyx/test/box-color-size-space-align.lyx.lyx
@@ -138,7 +138,7 @@ Frameless Boxes
blabla
\begin_inset Box Frameless
position "c"
-hor_pos "c"
+hor_pos "l"
has_inner_box 1
inner_pos "c"
use_parbox 0
@@ -168,7 +168,7 @@ mbox
blabla
\begin_inset Box Frameless
position "c"
-hor_pos "c"
+hor_pos "l"
has_inner_box 1
inner_pos "c"
use_parbox 0
@@ -608,7 +608,7 @@ Framed Boxes
blabla
\begin_inset Box Framed
position "c"
-hor_pos "c"
+hor_pos "l"
has_inner_box 0
inner_pos "c"
use_parbox 0
@@ -638,7 +638,7 @@ blabla
blabla
\begin_inset Box Framed
position "c"
-hor_pos "c"
+hor_pos "l"
has_inner_box 0
inner_pos "c"
use_parbox 0
@@ -659,7 +659,7 @@ status open
\begin_inset Box Framed
position "c"
-hor_pos "c"
+hor_pos "l"
has_inner_box 0
inner_pos "c"
use_parbox 0
@@ -694,7 +694,7 @@ blabla
blabla
\begin_inset Box Boxed
position "c"
-hor_pos "c"
+hor_pos "l"
has_inner_box 0
inner_pos "c"
use_parbox 0
@@ -724,7 +724,7 @@ fbox
blabla
\begin_inset Box Boxed
position "c"
-hor_pos "c"
+hor_pos "l"
has_inner_box 0
inner_pos "c"
use_parbox 0
@@ -758,7 +758,7 @@ box 1
blabla
\begin_inset Box Boxed
position "c"
-hor_pos "c"
+hor_pos "l"
has_inner_box 0
inner_pos "c"
use_parbox 0
@@ -818,7 +818,7 @@ framebox 3
This is an example text.
\begin_inset Box Boxed
position "c"
-hor_pos "c"
+hor_pos "l"
has_inner_box 1
inner_pos "s"
use_parbox 0
@@ -864,7 +864,7 @@ box height.
blabla
\begin_inset Box ovalbox
position "c"
-hor_pos "c"
+hor_pos "l"
has_inner_box 0
inner_pos "c"
use_parbox 0
@@ -894,7 +894,7 @@ ovalbox
blabla
\begin_inset Box Ovalbox
position "c"
-hor_pos "c"
+hor_pos "l"
has_inner_box 0
inner_pos "c"
use_parbox 0
@@ -924,7 +924,7 @@ Ovalbox
blabla
\begin_inset Box Shadowbox
position "c"
-hor_pos "c"
+hor_pos "l"
has_inner_box 0
inner_pos "c"
use_parbox 0
@@ -954,7 +954,7 @@ shadowbox
blabla
\begin_inset Box Doublebox
position "c"
-hor_pos "c"
+hor_pos "l"
has_inner_box 0
inner_pos "c"
use_parbox 0
@@ -1014,7 +1014,7 @@ Note:
\begin_inset Box Shaded
position "c"
-hor_pos "c"
+hor_pos "l"
has_inner_box 0
inner_pos "c"
use_parbox 0
@@ -1044,7 +1044,7 @@ Shaded background box
\begin_inset Box Shaded
position "c"
-hor_pos "c"
+hor_pos "l"
has_inner_box 1
inner_pos "c"
use_parbox 0
diff --git a/src/tex2lyx/test/test-insets.lyx.lyx b/src/tex2lyx/test/test-insets.lyx.lyx
index 3d1c164..e45b9a1 100644
--- a/src/tex2lyx/test/test-insets.lyx.lyx
+++ b/src/tex2lyx/test/test-insets.lyx.lyx
@@ -5089,7 +5089,7 @@ two
\begin_inset Box Frameless
position "c"
-hor_pos "c"
+hor_pos "l"
has_inner_box 1
inner_pos "c"
use_parbox 0
@@ -5124,7 +5124,7 @@ three
\begin_inset Box Frameless
position "c"
-hor_pos "c"
+hor_pos "l"
has_inner_box 1
inner_pos "c"
use_parbox 0
@@ -5159,7 +5159,7 @@ four
\begin_inset Box Frameless
position "c"
-hor_pos "c"
+hor_pos "l"
has_inner_box 1
inner_pos "c"
use_parbox 0