[Libreoffice-commits] core.git: svx/source

Tomaž Vajngerl (via logerrit) logerrit at kemper.freedesktop.org
Fri Aug 23 19:50:49 UTC 2019


 svx/source/dialog/svxruler.cxx |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit e4c7126354c4d96f20e87c0d72b631ed99c6c2be
Author:     Tomaž Vajngerl <tomaz.vajngerl at collabora.co.uk>
AuthorDate: Fri Aug 23 21:52:20 2019 +0900
Commit:     Tomaž Vajngerl <quikee at gmail.com>
CommitDate: Fri Aug 23 21:49:46 2019 +0200

    Fix commented out debug code in ruler so it compiles
    
    Change-Id: I4b0af0009e525a28dd124b34b424058bf3ed4c4a
    Reviewed-on: https://gerrit.libreoffice.org/78010
    Tested-by: Jenkins
    Reviewed-by: Tomaž Vajngerl <quikee at gmail.com>

diff --git a/svx/source/dialog/svxruler.cxx b/svx/source/dialog/svxruler.cxx
index d418afbe8e07..5cb7769bb2df 100644
--- a/svx/source/dialog/svxruler.cxx
+++ b/svx/source/dialog/svxruler.cxx
@@ -79,8 +79,8 @@ public:
                 Show();
                 Size aParentSize(pParent->GetOutputSizePixel());
                 Size aOwnSize(GetSizePixel());
-                aParentSize.Width() -= aOwnSize.Width();
-                aParentSize.Height() -= aOwnSize.Height();
+                aParentSize.setWidth(aParentSize.Width() - aOwnSize.Width());
+                aParentSize.setHeight(aParentSize.Height() - aOwnSize.Height());
                 SetPosPixel(Point(aParentSize.Width(), aParentSize.Height()));
             }
         ~RulerDebugWindow();


More information about the Libreoffice-commits mailing list