[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-23 14:39:55
Message-ID: 20041023143955.21641.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-23 16:39 -------
CVS commit by livne:
Fix displaying of page borders in RTL sheets.
CCBUG: 90127
M +20 -4 kspread_cell.cc 1.639
--- koffice/kspread/kspread_cell.cc #1.638:1.639
@ -2980,4 +2980,6 @ void KSpreadCell::paintPageBorders( QPai
KSpreadSheetPrint* print = m_pTable->print();
+ KSpreadSheet::LayoutDirection sheetDir = m_pTable->layoutDirection();
+
// Draw page borders
if( m_pTable->isShowPageBorders() )
@ -2993,4 +2995,11 @ void KSpreadCell::paintPageBorders( QPai
{
painter.setPen( table()->doc()->pageBorderColor() );
+
+ if ( sheetDir == KSpreadSheet::RightToLeft )
+ painter.drawLine( doc->zoomItX( cellRect.right() ),
+ doc->zoomItY( cellRect.y() ),
+ doc->zoomItX( cellRect.right() ),
+ doc->zoomItY( cellRect.bottom() ) );
+ else
painter.drawLine( doc->zoomItX( cellRect.x() ), doc->zoomItY( cellRect.y() ),
doc->zoomItX( cellRect.x() ), doc->zoomItY( cellRect.bottom() ) );
@ -3011,4 +3020,11 @ void KSpreadCell::paintPageBorders( QPai
{
painter.setPen( table()->doc()->pageBorderColor() );
+
+ if ( sheetDir == KSpreadSheet::RightToLeft )
+ painter.drawLine( doc->zoomItX( cellRect.x() ),
+ doc->zoomItY( cellRect.y() ),
+ doc->zoomItX( cellRect.x() ),
+ doc->zoomItY( cellRect.bottom() ) );
+ else
painter.drawLine( doc->zoomItX( cellRect.right() ), doc->zoomItY( cellRect.y() ),
doc->zoomItX( cellRect.right() ), doc->zoomItY( cellRect.bottom() ) );
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic