[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    koffice/lib/kofficeui
From:       Ariya Hidayat <ariya () kde ! org>
Date:       2005-11-10 17:58:51
Message-ID: 1131645531.593341.20234.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 479487 by ariya:

fix tab arrangement in RTL layout


 M  +3 -3      kotabbar.cpp  


--- trunk/koffice/lib/kofficeui/kotabbar.cpp #479486:479487
@@ -230,10 +230,10 @@
         }
 
         lastTab = tabRects.count();
-        for( unsigned i = 0; i < tabRects.count(); i++ )
-            if( tabRects[i].right() < 0 )
+        for( unsigned i = tabRects.count()-1; i>0; i-- )
+            if( tabRects[i].left() > 0 )
             {
-                lastTab = i;
+                lastTab = i+1;
                 break;
             }
     }    
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic