summaryrefslogtreecommitdiffstats
path: root/kspread/kspread_doc.cc
diff options
context:
space:
mode:
Diffstat (limited to 'kspread/kspread_doc.cc')
-rw-r--r--kspread/kspread_doc.cc10
1 files changed, 5 insertions, 5 deletions
diff --git a/kspread/kspread_doc.cc b/kspread/kspread_doc.cc
index 188dbe2ee..c277e9917 100644
--- a/kspread/kspread_doc.cc
+++ b/kspread/kspread_doc.cc
@@ -1656,12 +1656,12 @@ void Doc::paintContent( TQPainter& painter, const TQRect& rect,
if ( m_zoomedResolutionX != zoomX )
d_zoom *= ( zoomX / m_zoomedResolutionX );
- // KSpread support zoom, therefore no need to scale with tqworldMatrix
- TQWMatrix matrix = painter.tqworldMatrix();
+ // KSpread support zoom, therefore no need to scale with worldMatrix
+ TQWMatrix matrix = painter.worldMatrix();
matrix.setMatrix( 1, 0, 0, 1, matrix.dx(), matrix.dy() );
TQRect prect = rect;
- prect.setWidth( (int) (prect.width() * painter.tqworldMatrix().m11()) );
- prect.setHeight( (int) (prect.height() * painter.tqworldMatrix().m22()) );
+ prect.setWidth( (int) (prect.width() * painter.worldMatrix().m11()) );
+ prect.setHeight( (int) (prect.height() * painter.worldMatrix().m22()) );
setZoomAndResolution( (int) ( d_zoom * 100 ), KoGlobal::dpiX(), KoGlobal::dpiY() );
// paint the content, now zoom is correctly set
kdDebug(36001)<<"paintContent-------------------------------------\n";
@@ -1746,7 +1746,7 @@ void Doc::paintCellRegions(TQPainter& painter, const TQRect &viewRect,
- view->canvasWidget()->yOffset() );
}
else {
- matrix = painter.tqworldMatrix();
+ matrix = painter.worldMatrix();
}
// TQPtrListIterator<KoDocumentChild> it( tqchildren() );