]> git.lyx.org Git - features.git/commit
Revert the box alignment part of 8010b90c
authorGeorg Baum <baum@lyx.org>
Fri, 23 Oct 2015 20:08:38 +0000 (22:08 +0200)
committerGeorg Baum <baum@lyx.org>
Fri, 23 Oct 2015 20:08:38 +0000 (22:08 +0200)
commitd5ed835225d8ec27225cd7bb415e1ac7db41a512
treecdec7b9a951820205ad75611114bf83de3245a2e
parentec6f51b373e86f48b42f0c7cd7f38d6897096f4b
Revert the box alignment part of 8010b90c

The horizontal alignment changes caused a regression for documents in older
formats. This could have been fixed by adding the following lines to the
format entry for 489 in development/FORMAT:

Previously, the horizontal position was ignored except for the
following parameter combinations:
- fixed width and type Boxed and without inner box
- fixed width and any type   and with    inner box and with makebox
Now, it is also used for the parameter combination below:
- makebox is not used and not (type Boxed and without inner box)

and a corresponding conversion to convert_BoxFeatures() in
lib/lyx2lyx/lyx_2_2.py. However, it was decided to revert the box alignment
changes instead: The box alignment can contradict the paragraph alignment. A
better way to avoid the additional space that can be created by paragraph
alignment (which was the motivation for implementing box alignment) is the
same as for table cells (see noTrivlistCentering() in src/Paragraph.cpp).
This would be a file format change and it is too late now for 2.2.0.

See http://www.mail-archive.com/lyx-devel@lists.lyx.org/msg188147.html for the
complete discussion (subject "Regression in lyx2lyx box alignment").
src/frontends/qt4/GuiBox.cpp
src/insets/InsetBox.cpp
src/tex2lyx/test/box-color-size-space-align.lyx.lyx
src/tex2lyx/text.cpp