From b8253cda5bbdc86389313769699f64704dbf57ef Mon Sep 17 00:00:00 2001 From: "Aaron J. Seigo" Date: Sat, 19 May 2007 08:32:22 +0000 Subject: [PATCH] get rid of matrix removal for now so that things actually draw properly in graphicsitems svn path=/trunk/KDE/kdebase/workspace/plasma/lib/; revision=666238 --- svg.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/svg.cpp b/svg.cpp index b18f9e820..405aa1847 100644 --- a/svg.cpp +++ b/svg.cpp @@ -133,10 +133,10 @@ void Svg::paint( QPainter* painter, const QPointF& point, const QString& element QPixmap pix; d->findInCache( painter, pix, elementID ); - QMatrix matrix = painter->worldMatrix(); - painter->setWorldMatrix( QMatrix() ); +/* QMatrix matrix = painter->worldMatrix(); + painter->setWorldMatrix( QMatrix() );*/ painter->drawPixmap( point.toPoint(), pix ); - painter->setWorldMatrix( matrix ); +// painter->setWorldMatrix( matrix ); } void Svg::paint( QPainter* painter, int x, int y, const QString& elementID ) @@ -149,10 +149,10 @@ void Svg::paint( QPainter* painter, const QRectF& rect, const QString& elementID QPixmap pix; d->findInCache( painter, pix, elementID ); - QMatrix matrix = painter->worldMatrix(); - painter->setWorldMatrix( QMatrix() ); - painter->drawPixmap( rect.toRect(), pix ); - painter->setWorldMatrix( matrix ); +/* QMatrix matrix = painter->worldMatrix(); + painter->setWorldMatrix( QMatrix() );*/ + painter->drawPixmap( rect, pix, rect ); +// painter->setWorldMatrix( matrix ); } void Svg::resize( int width, int height )