[Kst] kdeextragear-2/kst/kst

Barth Netterfield netterfield at astro.utoronto.ca
Tue Jul 27 02:56:31 CEST 2004


CVS commit by netterfield: 

Fix for Bug#: 85706 printed plots are hard to see

Minimum line width is width/999.


  M +3 -1      kst2dplot.cpp   1.183


--- kdeextragear-2/kst/kst/kst2dplot.cpp  #1.182:1.183
@@ -1352,5 +1352,7 @@ void Kst2DPlot::draw(QPainter &p, KstPai
       }
 
-      p.setPen(QPen(c->getColor(), c->lineWidth(), KstLineStyle[c->lineStyle()]));
+      p.setPen(QPen(c->getColor(),
+                    (c->lineWidth()<penWidth? penWidth:c->lineWidth()),
+                    KstLineStyle[c->lineStyle()]));
 
       if (c->hasLines()) {





More information about the Kst mailing list