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:
Abdelrazak Younes 2007-12-07 21:57:56 +00:00
parent acbb1c9b8c
commit 2356bc13ee

View File

@ -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))
// are there any hfills in the 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