diff options
author | Andreas Kling <andreas.kling@nokia.com> | 2010-09-25 17:23:12 (GMT) |
---|---|---|
committer | Andreas Kling <andreas.kling@nokia.com> | 2010-09-26 14:29:27 (GMT) |
commit | bcb4dbebe2f6216842ce443bfc6d126943020a35 (patch) | |
tree | ad236dfb3f01ef7e844b36358511f7afb0021659 /src/gui/painting/qpainter.cpp | |
parent | 23e03ee30dcd140a51073a0dd665bd871927d05e (diff) | |
download | Qt-bcb4dbebe2f6216842ce443bfc6d126943020a35.zip Qt-bcb4dbebe2f6216842ce443bfc6d126943020a35.tar.gz Qt-bcb4dbebe2f6216842ce443bfc6d126943020a35.tar.bz2 |
Fix QPainter::clipBoundingRect() for QRectF clip.
clipBoundingRect() wasn't handling QPainterClipInfo::RectFClip
properly, mistaking it for PathClip.
Reviewed-by: Samuel Rødal
Diffstat (limited to 'src/gui/painting/qpainter.cpp')
-rw-r--r-- | src/gui/painting/qpainter.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gui/painting/qpainter.cpp b/src/gui/painting/qpainter.cpp index 8f54a2e..35a74c9 100644 --- a/src/gui/painting/qpainter.cpp +++ b/src/gui/painting/qpainter.cpp @@ -2737,6 +2737,8 @@ QRectF QPainter::clipBoundingRect() const if (info.clipType == QPainterClipInfo::RectClip) r = info.rect; + else if (info.clipType == QPainterClipInfo::RectFClip) + r = info.rectf; else if (info.clipType == QPainterClipInfo::RegionClip) r = info.region.boundingRect(); else |