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

List:       kde-bugs-dist
Subject:    [Bug 90127] reversed sheet are not displayed correctly
From:       Meni Livne <livne () kde ! org>
Date:       2004-10-16 14:33:19
Message-ID: 20041016143319.13488.qmail () ktown ! kde ! org
[Download RAW message or body]

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
        
http://bugs.kde.org/show_bug.cgi?id=90127        




------- Additional Comments From livne kde org  2004-10-16 16:33 -------
CVS commit by livne: 

Have the long text indicator appear on the left in case the text in a cell
is RTL.

CCBUG: 90127


  M +20 -6     kspread_cell.cc   1.635


--- koffice/kspread/kspread_cell.cc  #1.634:1.635
 @ -2897,4 +2897,16  @ void KSpreadCell::paintMoreTextIndicator
 
     QPointArray point( 3 );
+
+    if ( d->strOutText.isRightToLeft() )
+    {
+      point.setPoint( 0, doc->zoomItX( cellRect.left() + 4.0 ),
+                         doc->zoomItY( cellRect.y() + cellRect.height() / 2.0 -4.0 ) );
+      point.setPoint( 1, doc->zoomItX( cellRect.left() ),
+                         doc->zoomItY( cellRect.y() + cellRect.height() / 2.0 ));
+      point.setPoint( 2, doc->zoomItX( cellRect.left() + 4.0 ),
+                         doc->zoomItY( cellRect.y() + cellRect.height() / 2.0 +4.0 ) );
+    }
+    else
+    {
     point.setPoint( 0, doc->zoomItX( cellRect.right() - 4.0 ),
                        doc->zoomItY( cellRect.y() + cellRect.height() / 2.0 - 4.0 ) );
 @ -2903,4 +2915,6  @ void KSpreadCell::paintMoreTextIndicator
     point.setPoint( 2, doc->zoomItX( cellRect.right() - 4.0 ),
                        doc->zoomItY( cellRect.y() + cellRect.height() / 2.0 + 4.0 ) );
+    }
+
     painter.setBrush( QBrush( penColor ) );
     painter.setPen( Qt::NoPen );
[prev in list] [next in list] [prev in thread] [next in thread] 

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