From 2356bc13eef1c51a7ca55ef60e71f3333f053f4c Mon Sep 17 00:00:00 2001 From: Abdelrazak Younes Date: Fri, 7 Dec 2007 21:57:56 +0000 Subject: [PATCH] Partly revert r21987 which caused alignment problems. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22004 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/TextMetrics.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/TextMetrics.cpp b/src/TextMetrics.cpp index 8321b34eca..4fa2857ad6 100644 --- a/src/TextMetrics.cpp +++ b/src/TextMetrics.cpp @@ -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