[Kst] [Bug 116847] Problem with X/Y Mouse Zoom mode

Andrew Walker arwalker at sumusltd.com
Tue Nov 22 19:39:31 CET 2005


------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
         
http://bugs.kde.org/show_bug.cgi?id=116847         




------- Additional Comments From arwalker sumusltd com  2005-11-22 19:39 -------
The problem was caused by the following change in 
void KstTopLevelView::paint(KstPaintType type, QPainter& p, const QRegion& bounds)

if (bounds.isNull()) {     
    p.setClipRegion(clipRegion());
} else {
    p.setClipRegion(bounds);
}

If a menu covers up some part of a plot when in X/Y Zoom mode then the clip region is set to the region defined by that menu and only that region is updated. I don't see anywhere that this clip region is then cancelled, so further updates of the X/Y Zoom mode line are made only within the clip region - which is exactly what I am seeing. Also, if I revert the portion of code above then everything behaves as expected.

Unless I hear otherwise I'll add a call to p.setClipping(false) in a sutiable loaction to fix this problem.


More information about the Kst mailing list