summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--dw/textblock.cc4
1 files changed, 1 insertions, 3 deletions
diff --git a/dw/textblock.cc b/dw/textblock.cc
index 6d2d91ae..13df376c 100644
--- a/dw/textblock.cc
+++ b/dw/textblock.cc
@@ -3061,9 +3061,7 @@ int Textblock::getGeneratorRest (int oofmIndex)
OOFAwareWidget *container = oofContainer[oofmIndex];
if (container != NULL && findSizeRequestReference (container, &xRef, NULL))
- rest = misc::max (container->getGeneratorWidth ()
- - (xRef + getGeneratorWidth ()),
- 0);
+ rest = container->getGeneratorWidth () - (xRef + getGeneratorWidth ());
else {
// Only callend for floats, so this should not happen:
assertNotReached ();