summaryrefslogtreecommitdiff
path: root/dw/textblock.cc
diff options
context:
space:
mode:
authorcorvid <corvid@lavabit.com>2010-11-19 17:44:38 +0000
committercorvid <corvid@lavabit.com>2010-11-19 17:44:38 +0000
commit5481cb720e47bcde3e48609270669b2933d0601c (patch)
treef6a51273dd44455066de3975b3c164ff1beb939e /dw/textblock.cc
parentc5387459af97e2ba5007f20ffcbec0876a69e63f (diff)
include line1OffsetEff in first word extremes
for the sake of text-indent and tables.
Diffstat (limited to 'dw/textblock.cc')
-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);
}