changeset 1766:5b50b51efa06

include line1OffsetEff in first word extremes for the sake of text-indent and tables.
author corvid <corvid@lavabit.com>
date Fri, 19 Nov 2010 17:44:38 +0000
parents 947f7b8bdbea
children 1bccd1243740
files dw/textblock.cc
diffstat 1 files changed, 3 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/dw/textblock.cc	Fri Nov 19 16:09:49 2010 +0000
+++ b/dw/textblock.cc	Fri Nov 19 17:44:38 2010 +0000
@@ -255,10 +255,9 @@
             word = words->getRef (wordIndex);
             getWordExtremes (word, &wordExtremes);
 
-            /* For the first word, we simply add the line1_offset. */
-            /* This test looks questionable */
-            if (ignoreLine1OffsetSometimes && wordIndex == 0) {
-               wordExtremes.minWidth += line1Offset;
+            if (wordIndex == 0) {
+               wordExtremes.minWidth += line1OffsetEff;
+               wordExtremes.maxWidth += line1OffsetEff;
                //DEBUG_MSG (DEBUG_SIZE_LEVEL + 1,
                //           "      (next plus %d)\n", page->line1_offset);
             }