diff options
author | Sebastian Geerken <devnull@localhost> | 2015-10-03 13:26:09 +0200 |
---|---|---|
committer | Sebastian Geerken <devnull@localhost> | 2015-10-03 13:26:09 +0200 |
commit | c1c494441f1bcf3a2ae70186cbf1eaed08cf6882 (patch) | |
tree | 8a99bd6484a36c29a3e375a12d75e016b7c9aaf3 /dw/textblock.cc | |
parent | 061b93f81103e9a111c7912019f4786a69f3e8b0 (diff) |
SRDOP: OOFAwareWidget::getGeneratorX (signature, implementation).
Diffstat (limited to 'dw/textblock.cc')
-rw-r--r-- | dw/textblock.cc | 11 |
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 () |