[Libreoffice-commits] .: vcl/unx
Libreoffice Gerrit user
logerrit at kemper.freedesktop.org
Sat Nov 17 21:09:58 PST 2012
vcl/unx/gtk/gdi/salnativewidgets-gtk.cxx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit e059883fb343471fa651f4601f59acc5f37333b6
Author: Ivan Timofeev <timofeev.i.s at gmail.com>
Date: Sat Nov 17 23:51:48 2012 +0400
gtk: don't make editboxes taller than needed
Change-Id: I248d6668d1e9c5ec834cd8268d853ec03a2f859b
diff --git a/vcl/unx/gtk/gdi/salnativewidgets-gtk.cxx b/vcl/unx/gtk/gdi/salnativewidgets-gtk.cxx
index d8c1f69..5a1d376 100644
--- a/vcl/unx/gtk/gdi/salnativewidgets-gtk.cxx
+++ b/vcl/unx/gtk/gdi/salnativewidgets-gtk.cxx
@@ -1144,7 +1144,7 @@ sal_Bool GtkSalGraphics::getNativeControlRegion( ControlType nType,
GtkRequisition aReq;
gtk_widget_size_request( widget, &aReq );
Rectangle aEditRect = rControlRegion;
- long nHeight = (aEditRect.GetHeight() > aReq.height+1) ? aEditRect.GetHeight() : aReq.height+1;
+ long nHeight = (aEditRect.GetHeight() > aReq.height) ? aEditRect.GetHeight() : aReq.height;
aEditRect = Rectangle( aEditRect.TopLeft(),
Size( aEditRect.GetWidth(), nHeight ) );
rNativeBoundingRegion = aEditRect;
More information about the Libreoffice-commits
mailing list