[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: =?utf-8?q?=5Bcalligra/flow-diagram-layout-yue=5D_libs/flake=3A_l?=
From: Yue Liu <opuspace () gmail ! com>
Date: 2011-01-27 7:41:46
Message-ID: 20110127074146.7833CA60C0 () git ! kde ! org
[Download RAW message or body]
Git commit a4edfce81fed2e2647abcc97bb392dab3e9dea83 by Yue Liu.
Pushed by liu into branch 'flow-diagram-layout-yue'.
little fix
M +2 -2 libs/flake/KoShapeShadow.cpp
http://commits.kde.org/47e7010d/a4edfce81fed2e2647abcc97bb392dab3e9dea83
diff --git a/libs/flake/KoShapeShadow.cpp b/libs/flake/KoShapeShadow.cpp
index c084651..2ff6304 100644
--- a/libs/flake/KoShapeShadow.cpp
+++ b/libs/flake/KoShapeShadow.cpp
@@ -80,10 +80,10 @@ void KoShapeShadow::paint(KoShape *shape, QPainter &painter, const KoViewConvert
QTransform tr = shape->absoluteTransformation(&converter);
QTransform offsetMatrix = tr * tm * tr.inverted();
- QRectF shadowRect(QPointF(), shape->boundingRect().size()); //shape rectangle
+ QRectF shadowRect(QPointF(0, 0), shape->boundingRect().size()); //shape rectangle
//convert relative radius to absolute radius
- qreal absBR = d->blur*0.01*shape->boundingRect().width();
+ qreal absBR = d->blur*0.01*shadowRect.width();
qreal expand = 3 * absBR; //blur would cause the shadow to be bigger
QRectF clipRegion = shadowRect.adjusted(-expand, -expand, expand, expand);
QRectF zoomedClipRegion = converter.documentToView(clipRegion);
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic