| Summary: | Labels with borders don't always have equal borders on all sizes | ||
|---|---|---|---|
| Product: | [Applications] kst | Reporter: | Nicolas Brisset <nicolas.brisset> |
| Component: | general | Assignee: | kst |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | ||
| Priority: | NOR | ||
| Version First Reported In: | 1.x | ||
| Target Milestone: | --- | ||
| Platform: | unspecified | ||
| OS: | Solaris | ||
| Latest Commit: | Version Fixed/Implemented In: | ||
| Sentry Crash Report: | |||
|
Description
Nicolas Brisset
2006-02-01 17:13:23 UTC
STEPS TO REPRODUCE: Create a label Edit the label and set: Transparent: on Border width: 1 RESULTS: Border is drawn only at the top and left of the label EXPECTED RESULTS: Border is drawn on all sides of the label 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);
SVN commit 538727 by arwalker:
CCBUG:121166 Ensure border always drawn on all sides of the legend.
M +1 -1 kstviewlegend.cpp
--- trunk/extragear/graphics/kst/src/libkstapp/kstviewlegend.cpp #538726:538727
@@ -391,7 +391,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);
|