vcl/source/control/tabctrl.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 48e3a04f5c81d88cf054ea658826c51bf413a185
Author: Tor Lillqvist <t...@iki.fi>
Date:   Wed Jul 31 15:02:09 2013 +0300

    Fix bogus change of Len() to isEmpty()
    
    Change-Id: Ie1dece00176985bc82dd89c9831b23cb8594b1c3

diff --git a/vcl/source/control/tabctrl.cxx b/vcl/source/control/tabctrl.cxx
index 2cc1802..c362d06 100644
--- a/vcl/source/control/tabctrl.cxx
+++ b/vcl/source/control/tabctrl.cxx
@@ -307,7 +307,7 @@ Size TabControl::ImplGetItemSize( ImplTabItem* pItem, long 
nMaxWidth )
 
     // For languages with short names (e.g. Chinese), because the space is
     // normally only one pixel per char
-    if ( !pItem->maFormatText.isEmpty() < TAB_EXTRASPACE_X )
+    if ( pItem->maFormatText.Len() < TAB_EXTRASPACE_X )
         aSize.Width() += TAB_EXTRASPACE_X-pItem->maFormatText.getLength();
 
     // shorten Text if needed
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to