diff options
author | Sebastian Geerken <devnull@localhost> | 2016-04-30 12:33:34 +0200 |
---|---|---|
committer | Sebastian Geerken <devnull@localhost> | 2016-04-30 12:33:34 +0200 |
commit | 71d3d04e5abd52ba79f08453bd0e209c61b9523d (patch) | |
tree | a193839e9721e94e66a50b054a423303449954cf | |
parent | 1b7bdb008c7e7f15b6b4ea393cd7e9264ff754c6 (diff) |
RTFL.
-rw-r--r-- | dw/textblock.cc | 28 |
1 files changed, 19 insertions, 9 deletions
diff --git a/dw/textblock.cc b/dw/textblock.cc index 5cb68026..6d2d91ae 100644 --- a/dw/textblock.cc +++ b/dw/textblock.cc @@ -3038,30 +3038,40 @@ int Textblock::getGeneratorX (int oofmIndex) int Textblock::getGeneratorY (int oofmIndex) { - int yRef; + DBG_OBJ_ENTER ("resize", 0, "Textblock::getGeneratorY", "%d", oofmIndex); + + int yRef, y; if (findSizeRequestReference (oofmIndex, NULL, &yRef)) - return yRef; + y = yRef; else { // Only called for floats, so this should not happen: assertNotReached (); - return 0; + y = 0; } + + DBG_OBJ_LEAVE_VAL ("%d", y); + return y; } int Textblock::getGeneratorRest (int oofmIndex) { - int xRef; + DBG_OBJ_ENTER ("resize", 0, "Textblock::getGeneratorRest", "%d", oofmIndex); + + int xRef, rest; OOFAwareWidget *container = oofContainer[oofmIndex]; if (container != NULL && findSizeRequestReference (container, &xRef, NULL)) - return misc::max (container->getGeneratorWidth () - - (xRef + getGeneratorWidth ()), - 0); + rest = misc::max (container->getGeneratorWidth () + - (xRef + getGeneratorWidth ()), + 0); else { - // Only called for floats, so this should not happen: + // Only callend for floats, so this should not happen: assertNotReached (); - return 0; + rest = 0; } + + DBG_OBJ_LEAVE_VAL ("%d", rest); + return rest; } int Textblock::getGeneratorWidth () |