Kaydet (Commit) 489b4f1b authored tarafından Caolán McNamara's avatar Caolán McNamara Kaydeden (comit) Christian Lohmaier

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/17578Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarChristian Lohmaier <lohmaier+LibreOffice@googlemail.com>
üst 3d3f46c0
...@@ -134,11 +134,11 @@ Rectangle GtkSalGraphics::NWGetSpinButtonRect( ControlPart nPart, Rectangle aAre ...@@ -134,11 +134,11 @@ Rectangle GtkSalGraphics::NWGetSpinButtonRect( ControlPart nPart, Rectangle aAre
buttonRect.Bottom() = buttonRect.Top() + aAreaRect.GetHeight(); buttonRect.Bottom() = buttonRect.Top() + aAreaRect.GetHeight();
if ( nPart == PART_BUTTON_UP ) 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 ) else if( nPart == PART_BUTTON_DOWN )
{ {
buttonRect.setX(aAreaRect.Left() + (aAreaRect.GetWidth() - buttonRect.GetWidth())); buttonRect.setX(aAreaRect.Left() + (aAreaRect.GetWidth() - 2*buttonRect.GetWidth()));
} }
else else
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment