diff options
author | Caolán McNamara <caolanm@redhat.com> | 2015-08-07 16:46:28 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2015-08-07 15:48:44 +0000 |
commit | d403cf5451d9a525f7fd76357ec9fa907908d40c (patch) | |
tree | ff0f618e620a1bb817e1355c020656e05678f638 | |
parent | 30335b9fae7eef8d5f07dd5b0abf3efedd5a1176 (diff) |
gtk3: it was pointed out to me we have up and down reversed
by jrb, oops
Change-Id: Id722533edae72d4849129e339bd6cca265d3c35c
Reviewed-on: https://gerrit.libreoffice.org/17577
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
-rw-r--r-- | vcl/unx/gtk3/gdi/gtk3salnativewidgets-gtk.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/vcl/unx/gtk3/gdi/gtk3salnativewidgets-gtk.cxx b/vcl/unx/gtk3/gdi/gtk3salnativewidgets-gtk.cxx index 1d3e184f857d..e4e563e57945 100644 --- a/vcl/unx/gtk3/gdi/gtk3salnativewidgets-gtk.cxx +++ b/vcl/unx/gtk3/gdi/gtk3salnativewidgets-gtk.cxx @@ -136,11 +136,11 @@ Rectangle GtkSalGraphics::NWGetSpinButtonRect( ControlPart nPart, Rectangle aAre buttonRect.Bottom() = buttonRect.Top() + aAreaRect.GetHeight(); if ( nPart == PART_BUTTON_UP ) { - buttonRect.setX(aAreaRect.Left() + (aAreaRect.GetWidth() - 2*buttonRect.GetWidth())); + buttonRect.setX(aAreaRect.Left() + (aAreaRect.GetWidth() - buttonRect.GetWidth())); } else if( nPart == PART_BUTTON_DOWN ) { - buttonRect.setX(aAreaRect.Left() + (aAreaRect.GetWidth() - buttonRect.GetWidth())); + buttonRect.setX(aAreaRect.Left() + (aAreaRect.GetWidth() - 2*buttonRect.GetWidth())); } else { |