[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: koffice/libs/flake
From: Boudewijn Rempt <boud () valdyas ! org>
Date: 2010-10-14 14:44:11
Message-ID: 20101014144411.72C54AC895 () svn ! kde ! org
[Download RAW message or body]
SVN commit 1185899 by rempt:
Move the expensive qpainter saving and restoring inside the if
M +2 -4 KoShapeManagerPaintingStrategy.cpp
--- trunk/koffice/libs/flake/KoShapeManagerPaintingStrategy.cpp #1185898:1185899
@@ -46,15 +46,13 @@
void KoShapeManagerPaintingStrategy::paint(KoShape * shape, QPainter &painter, const \
KoViewConverter &converter, bool forPrint) {
+ if (d->shapeManager) {
painter.save();
painter.setTransform(shape->absoluteTransformation(&converter) * \
painter.transform());
-
- if (d->shapeManager) {
d->shapeManager->paintShape(shape, painter, converter, forPrint);
- }
-
painter.restore(); // for the matrix
}
+}
void KoShapeManagerPaintingStrategy::adapt(KoShape * shape, QRectF & rect)
{
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic