mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-03 00:20:43 +00:00
Fix width of row when there are active hfills
It is important to make sure in computeRowMetrics that the row width is correct at the end, because we rely on it in several places. Fixes bug #9870.
This commit is contained in:
parent
d887b2a5dc
commit
39e33d5138
@ -596,6 +596,7 @@ void TextMetrics::computeRowMetrics(pit_type const pit,
|
||||
if (nh > 0) {
|
||||
hfill = w / nh;
|
||||
hfill_rem = w % nh;
|
||||
row.dimension().wid += w;
|
||||
} else if (nh == 0 && int(row.width()) < max_width_) {
|
||||
// is it block, flushleft or flushright?
|
||||
// set x how you need it
|
||||
|
Loading…
Reference in New Issue
Block a user