diff options
author | sgeerken <devnull@localhost> | 2012-07-13 12:16:40 +0200 |
---|---|---|
committer | sgeerken <devnull@localhost> | 2012-07-13 12:16:40 +0200 |
commit | 72a0456b71b33eaf1e3feb5cb84d88936c9e0d9d (patch) | |
tree | 4ff3f306e4eeebb90f3193a1db1676680cb48909 /dw/textblock.hh | |
parent | 2e9c1b2b921a249743b139e7cea3449e642ae30e (diff) |
"line1Offset" is now handled correctly.
Diffstat (limited to 'dw/textblock.hh')
-rw-r--r-- | dw/textblock.hh | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/dw/textblock.hh b/dw/textblock.hh index d883c1c8..681b4f6c 100644 --- a/dw/textblock.hh +++ b/dw/textblock.hh @@ -383,7 +383,7 @@ protected: inline int lineXOffsetContents (Line *line) { return innerPadding + line->leftOffset + - (line == lines->getRef (0) ? line1OffsetEff : 0); + (line == lines->getFirstRef() ? line1OffsetEff : 0); } /** @@ -441,10 +441,10 @@ protected: virtual void wordWrap (int wordIndex, bool wrapAll); int hyphenateWord (int wordIndex); void accumulateWordForLine (int lineIndex, int wordIndex); - void accumulateWordData(int wordIndex); - int calcAvailWidth (); + void accumulateWordData(int wordIndex, int lineIndex); + int calcAvailWidth (int lineIndex); void initLine1Offset (int wordIndex); - void alignLine (Line *line); + void alignLine (int lineIndex); void sizeRequestImpl (core::Requisition *requisition); void getExtremesImpl (core::Extremes *extremes); |