| Summary: | Rare drawing bug with XY curves | ||
|---|---|---|---|
| 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: | |||
| Attachments: | Testcase for bug #135049 | ||
|
Description
Nicolas Brisset
2006-10-03 17:46:38 UTC
Note that if you move the curve in any direction by pressing an arrow key once, it will disappear. This is really a naughty one... Created attachment 17999 [details] Testcase for bug #135049 SVN commit 592880 by staikos:
if we're going to draw a line segment and jump we'd better flush the polyline
too
BUG: 135049
M +4 -0 kstvcurve.cpp
--- trunk/extragear/graphics/kst/src/libkstmath/kstvcurve.cpp #592879:592880
@@ -1045,6 +1045,10 @@
minY = Ly;
}
if (KDE_ISUNLIKELY(minY >= Ly && minY <= Hy && maxY >= Ly && maxY <= Hy)) {
+ if (index > 0) {
+ p->drawPolyline(points, 0, index);
+ index = 0;
+ }
p->drawLine(X2i, d2i(minY), X2i, d2i(maxY));
}
}
|