summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKim Motoyoshi Kalland <kim.kalland@nokia.com>2010-03-11 09:18:59 (GMT)
committerKim Motoyoshi Kalland <kim.kalland@nokia.com>2010-03-11 09:21:42 (GMT)
commitfb27eba721b41cb1b8557ffff663f9747a3922db (patch)
treeac1e4d1347d40f0fec90d7943940efdbc1062687
parent7baaea978200c82fdf65e3934cfa373edeca6524 (diff)
downloadQt-fb27eba721b41cb1b8557ffff663f9747a3922db.zip
Qt-fb27eba721b41cb1b8557ffff663f9747a3922db.tar.gz
Qt-fb27eba721b41cb1b8557ffff663f9747a3922db.tar.bz2
Fixed rounded SVG rectangles when 'rx' or 'ry' is 0.
Task-number: QTBUG-8264 Reviewed-by: Trond
-rw-r--r--src/svg/qsvghandler.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/svg/qsvghandler.cpp b/src/svg/qsvghandler.cpp
index 926b04d..bc4ca76 100644
--- a/src/svg/qsvghandler.cpp
+++ b/src/svg/qsvghandler.cpp
@@ -2962,9 +2962,9 @@ static QSvgNode *createRectNode(QSvgNode *parent,
if (nry > bounds.height()/2)
nry = bounds.height()/2;
- if (nrx && !nry)
+ if (!rx.isEmpty() && ry.isEmpty())
nry = nrx;
- else if (nry && !nrx)
+ else if (!ry.isEmpty() && rx.isEmpty())
nrx = nry;
//we draw rounded rect from 0...99