aboutsummaryrefslogtreecommitdiff
path: root/dw/textblock.cc
diff options
context:
space:
mode:
Diffstat (limited to 'dw/textblock.cc')
-rw-r--r--dw/textblock.cc11
1 files changed, 9 insertions, 2 deletions
diff --git a/dw/textblock.cc b/dw/textblock.cc
index a34ea025..77672449 100644
--- a/dw/textblock.cc
+++ b/dw/textblock.cc
@@ -3179,9 +3179,16 @@ void Textblock::oofSizeChanged (bool extremesChanged)
DBG_OBJ_LEAVE ();
}
-int Textblock::getGeneratorX ()
+int Textblock::getGeneratorX (int oofmIndex)
{
- return 0; // TODO
+ int xRef;
+ if (findSizeRequestReference (oofmIndex, &xRef, NULL))
+ return xRef;
+ else {
+ // Only called by by OOFFloatsMgr, so this should not happen:
+ assertNotReached ();
+ return 0;
+ }
}
int Textblock::getGeneratorWidth ()