mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-25 10:58:52 +00:00
Partly revert r21987 which caused alignment problems.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22004 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
acbb1c9b8c
commit
2356bc13ee
@ -553,9 +553,9 @@ void TextMetrics::computeRowMetrics(pit_type const pit,
|
||||
}
|
||||
|
||||
double hfill = 0;
|
||||
if (w > 0) {
|
||||
// are there any hfills in the row?
|
||||
if (int nh = numberOfHfills(par, row))
|
||||
if (int const nh = numberOfHfills(par, row)) {
|
||||
if (w > 0)
|
||||
hfill = w / double(nh);
|
||||
// we don't have to look at the alignment if it is ALIGN_LEFT and
|
||||
// if the row is already larger then the permitted width as then
|
||||
|
Loading…
Reference in New Issue
Block a user