summaryrefslogtreecommitdiff
path: root/vcl/unx/gtk3
diff options
context:
space:
mode:
authorIvan Timofeev <timofeev.i.s@gmail.com>2012-08-02 21:14:57 +0400
committerIvan Timofeev <timofeev.i.s@gmail.com>2012-08-02 21:17:33 +0400
commit2cfe27125a962f5f902972656589aab696d6286e (patch)
tree4a49fcf4891588f31fbb7bec683fde50d4c61d0d /vcl/unx/gtk3
parent81fd6b084b0f3c0eb5a97c77592f5ceb21d2dfb1 (diff)
gtk3: filch a fix for scrollbars w/o buttons from gtk2 code
that is b38ee8c8d5bb10ade41d5ee4050ec4fda12fcbd2 Change-Id: Ib86d86616443cf48ba1d3ee0b6f96314b42dc972
Diffstat (limited to 'vcl/unx/gtk3')
-rw-r--r--vcl/unx/gtk3/gdi/gtk3salnativewidgets-gtk.cxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/vcl/unx/gtk3/gdi/gtk3salnativewidgets-gtk.cxx b/vcl/unx/gtk3/gdi/gtk3salnativewidgets-gtk.cxx
index 42984934a9a4..45e897795441 100644
--- a/vcl/unx/gtk3/gdi/gtk3salnativewidgets-gtk.cxx
+++ b/vcl/unx/gtk3/gdi/gtk3salnativewidgets-gtk.cxx
@@ -1049,6 +1049,10 @@ sal_Bool GtkSalGraphics::getNativeControlRegion( ControlType nType, ControlPart
(nPart==PART_BUTTON_UP) || (nPart==PART_BUTTON_DOWN) ) )
{
aEditRect = NWGetScrollButtonRect( nPart, rControlRegion );
+ if (!aEditRect.GetWidth())
+ aEditRect.Right() = aEditRect.Left() + 1;
+ if (!aEditRect.GetHeight())
+ aEditRect.Bottom() = aEditRect.Top() + 1;
}
else if ( (nType==CTRL_SPINBOX) &&
((nPart==PART_BUTTON_UP) || (nPart==PART_BUTTON_DOWN) ||