diff options
author | corvid <corvid@lavabit.com> | 2010-11-19 17:44:38 +0000 |
---|---|---|
committer | corvid <corvid@lavabit.com> | 2010-11-19 17:44:38 +0000 |
commit | 5481cb720e47bcde3e48609270669b2933d0601c (patch) | |
tree | f6a51273dd44455066de3975b3c164ff1beb939e | |
parent | c5387459af97e2ba5007f20ffcbec0876a69e63f (diff) |
include line1OffsetEff in first word extremes
for the sake of text-indent and tables.
-rw-r--r-- | dw/textblock.cc | 7 |
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); } |