From 2cfe27125a962f5f902972656589aab696d6286e Mon Sep 17 00:00:00 2001 From: Ivan Timofeev Date: Thu, 2 Aug 2012 21:14:57 +0400 Subject: gtk3: filch a fix for scrollbars w/o buttons from gtk2 code that is b38ee8c8d5bb10ade41d5ee4050ec4fda12fcbd2 Change-Id: Ib86d86616443cf48ba1d3ee0b6f96314b42dc972 --- vcl/unx/gtk3/gdi/gtk3salnativewidgets-gtk.cxx | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'vcl/unx/gtk3') 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) || -- cgit