[Kst] extragear/graphics/kst/src/libkstapp
Andrew Walker
arwalker at sumusltd.com
Fri Mar 17 21:44:27 CET 2006
SVN commit 519685 by arwalker:
BUG:121166 Correctly define the clip region.
M +1 -1 kstviewlabel.cpp
M +2 -2 kstviewpicture.cpp
--- trunk/extragear/graphics/kst/src/libkstapp/kstviewlabel.cpp #519684:519685
@@ -426,7 +426,7 @@
_myClipMask = QRegion(bm);
_myClipMask.translate(cr.topLeft().x(), cr.topLeft().y());
- QBitmap bm1(_geom.bottomRight().x(), _geom.bottomRight().y(), true);
+ QBitmap bm1(_geom.bottomRight().x() + 1, _geom.bottomRight().y() + 1, true);
if (!bm1.isNull()) {
KstPainter p;
p.setMakingMask(true);
--- trunk/extragear/graphics/kst/src/libkstapp/kstviewpicture.cpp #519684:519685
@@ -71,7 +71,7 @@
QRegion KstViewPicture::clipRegion() {
if (_clipMask.isNull()) {
_myClipMask = QRegion();
- QBitmap bm1(_geom.bottomRight().x(), _geom.bottomRight().y(), true);
+ QBitmap bm1(_geom.bottomRight().x() + 1, _geom.bottomRight().y() + 1, true);
if (!bm1.isNull()) {
KstPainter p;
p.setMakingMask(true);
@@ -82,7 +82,7 @@
p.end();
_clipMask = QRegion(bm1);
}
- QBitmap bm2(_geom.bottomRight().x(), _geom.bottomRight().y(), true);
+ QBitmap bm2(_geom.bottomRight().x() + 1, _geom.bottomRight().y() + 1, true);
if (!bm2.isNull()) {
KstPainter p;
p.setMakingMask(true);
More information about the Kst
mailing list