diff --git a/svg.cpp b/svg.cpp index 405aa1847..47aad0d4e 100644 --- a/svg.cpp +++ b/svg.cpp @@ -146,8 +146,10 @@ void Svg::paint( QPainter* painter, int x, int y, const QString& elementID ) void Svg::paint( QPainter* painter, const QRectF& rect, const QString& elementID ) { +// QPixmap pix(rect.width(), rect.height()); QPixmap pix; - d->findInCache( painter, pix, elementID ); + QPainter *pain = new QPainter(); + d->findInCache( pain, pix, elementID ); /* QMatrix matrix = painter->worldMatrix(); painter->setWorldMatrix( QMatrix() );*/