aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--dw/textblock.cc7
1 files changed, 3 insertions, 4 deletions
diff --git a/dw/textblock.cc b/dw/textblock.cc
index 326c9dbc..02393ccd 100644
--- a/dw/textblock.cc
+++ b/dw/textblock.cc
@@ -255,10 +255,9 @@ void Textblock::getExtremesImpl (core::Extremes *extremes)
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);
}