]> git.lyx.org Git - features.git/commit
Fix alignment of rows when text width is variable
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Fri, 11 Jan 2019 14:55:17 +0000 (15:55 +0100)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Thu, 18 Jun 2020 12:39:56 +0000 (14:39 +0200)
commit85670faaa9602cc7c7694524d33855e6dffa3840
tree546bc854dda886a2ed0e7df73ea5019a13762230
parentbd885f9866a4addee225cfd9200a7f1722075cde
Fix alignment of rows when text width is variable

When several lines of text are in the same variable-width tabular
cell, it is not possible to align properly the rows until the cell
width is known.

Therefore a parameter is added to redoParagraph to skip this
computation, so that it can be done later in TextMetrics::metrics.
Other calls to redoParagraph in the code are not affected. It is not
clear at this point whether they may create artefacts.

computeRowMetrics has been renamed to setRowAlignment to better
reflect its use.

Fixes bug #11447.
src/TextMetrics.cpp
src/TextMetrics.h
src/insets/InsetSpace.cpp