]> 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>
Fri, 11 Jan 2019 15:23:05 +0000 (16:23 +0100)
commitedb46d2a949c2832ab3b594fd0006f092ec0421c
tree546bc854dda886a2ed0e7df73ea5019a13762230
parent64901b41b622b482c274320e9f98a576d32f6a54
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