summaryrefslogtreecommitdiff
path: root/dw/textblock_linebreaking.cc
diff options
context:
space:
mode:
authorSebastian Geerken <devnull@localhost>2014-10-06 12:29:51 +0200
committerSebastian Geerken <devnull@localhost>2014-10-06 12:29:51 +0200
commitb2619e5c7cce1dcc7e1bd70a9fae0095118da6da (patch)
treee96ac84daa26988029beb8582461e4ea50481c6b /dw/textblock_linebreaking.cc
parent911af8647d85f4f234ea600713b3bead07e331da (diff)
Handling 'clearPosition' in a different way.
Diffstat (limited to 'dw/textblock_linebreaking.cc')
-rw-r--r--dw/textblock_linebreaking.cc15
1 files changed, 0 insertions, 15 deletions
diff --git a/dw/textblock_linebreaking.cc b/dw/textblock_linebreaking.cc
index 8a7f1c9c..77cf46be 100644
--- a/dw/textblock_linebreaking.cc
+++ b/dw/textblock_linebreaking.cc
@@ -1935,21 +1935,6 @@ void Textblock::initNewLine ()
{
DBG_OBJ_ENTER0 ("construct.line", 0, "initNewLine");
- // At the very beginning, in Textblock::Textblock, where this
- // method is called, containingBlock is not yet defined.
-
- if (lines->size () == 0) {
- int clearPosition = 0;
-
- for (int i = 0; i < NUM_OOFM; i++)
- if (searchOutOfFlowMgr(i))
- clearPosition =
- misc::max (clearPosition,
- searchOutOfFlowMgr(i)->getClearPosition (this));
-
- setClearPosition (misc::max (clearPosition, 0));
- }
-
calcBorders (lines->size() > 0 ?
lines->getLastRef()->lastOofRefPositionedBeforeThisLine : -1,
1);