diff options
author | Sebastian Geerken <devnull@localhost> | 2015-12-29 23:49:49 +0100 |
---|---|---|
committer | Sebastian Geerken <devnull@localhost> | 2015-12-29 23:49:49 +0100 |
commit | 06a6415b19822164d08417fb38aad7a7650f5437 (patch) | |
tree | ccd4c9877b1bf9b46ae692959c2a521ba69cc570 /dw/ooffloatsmgr.cc | |
parent | c7fe0a3b121c9c9c5fbc9959c695e1661a5d1c42 (diff) |
SRDOP: Fix (really!) calculation of borders.
Diffstat (limited to 'dw/ooffloatsmgr.cc')
-rw-r--r-- | dw/ooffloatsmgr.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/dw/ooffloatsmgr.cc b/dw/ooffloatsmgr.cc index c5979104..65c6c3ed 100644 --- a/dw/ooffloatsmgr.cc +++ b/dw/ooffloatsmgr.cc @@ -1050,10 +1050,11 @@ int OOFFloatsMgr::getBorder (Side side, int y, int h, OOFAwareWidget *lastGB, break; case RIGHT: - w = container->getGeneratorWidth () - x; + w = container->getGeneratorWidth (); thisBorder = w - x; DBG_OBJ_MSGF ("border", 1, "thisBorder = %d - %d = %d", w, x, thisBorder); + break; default: assertNotReached (); |