aboutsummaryrefslogtreecommitdiff
path: root/dw/textblock.cc
diff options
context:
space:
mode:
authorSebastian Geerken <devnull@localhost>2015-10-03 13:26:09 +0200
committerSebastian Geerken <devnull@localhost>2015-10-03 13:26:09 +0200
commitc1c494441f1bcf3a2ae70186cbf1eaed08cf6882 (patch)
tree8a99bd6484a36c29a3e375a12d75e016b7c9aaf3 /dw/textblock.cc
parent061b93f81103e9a111c7912019f4786a69f3e8b0 (diff)
SRDOP: OOFAwareWidget::getGeneratorX (signature, implementation).
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 ()