[Kst] kdeextragear-2/kst/kst

Andrew Walker arwalker at sumusltd.com
Wed Jan 12 01:48:01 CET 2005


CVS commit by arwalker: 

Restore the clipping region. This prevents the focus rectangle associated with a plot that is a member of a group from being seen through an overlying plot that is not a member of the group.


  M +5 -1      kstplotgroup.cpp   1.29


--- kdeextragear-2/kst/kst/kstplotgroup.cpp  #1.28:1.29
@@ -147,4 +147,6 @@ void KstPlotGroup::paint(KstPaintType ty
   QRegion clipRegion(geometry());
   QBrush brush(_backgroundColor);
+  bool hadClipping = p.hasClipping();
+  QRegion oldRegion = p.clipRegion();
 
   if (KstApp::inst()->getZoomRadio() == KstApp::LAYOUT) {
@@ -160,5 +162,7 @@ void KstPlotGroup::paint(KstPaintType ty
   p.fillRect(geometry(), brush);
 
-  p.setClipRegion(QRegion(geometry()));
+  p.setClipRegion(oldRegion);
+  p.setClipping(hadClipping);
+
 #ifdef BENCHMARK
   QTime t;




More information about the Kst mailing list