[Kst] kdeextragear-2/kst/kst

Andrew Walker arwalker at sumusltd.com
Wed Jul 21 21:27:17 CEST 2004


CVS commit by arwalker: 

Plot the legend if it is not sent to front.


  M +5 -0      kst2dplot.cpp   1.168


--- kdeextragear-2/kst/kst/kst2dplot.cpp  #1.167:1.168
@@ -1240,4 +1240,9 @@ void Kst2DPlot::draw(QPainter &p, double
   }
 
+  /*** plot the legend now if its in the background **/
+  if (!Legend->getFront()) {
+    Legend->draw(&Curves, p, d2i(xleft_bdr_px + RelPlotRegion.width() * Legend->x()),
+                d2i(ytop_bdr_px + RelPlotRegion.height() * Legend->y()));
+  }
 
   /*******************************************************************/





More information about the Kst mailing list