[Kst] kdeextragear-2/kst/kst

Andrew Walker arwalker at sumusltd.com
Mon Dec 13 02:22:12 CET 2004


CVS commit by arwalker: 

Draw legend of correct size and correct line type.

CCMAIL: 95018-done at bugs.kde.org


  M +3 -2      kstlegend.cpp   1.19


--- kdeextragear-2/kst/kst/kstlegend.cpp  #1.18:1.19
@@ -184,13 +184,14 @@ void KstLegend::draw(KstBaseCurveList* p
         // draw the corresponding line and point...
         //
-        p.setPen(QPen((*it)->color(), (*it)->lineWidth(), KstLineStyle[(*it)->lineStyle()]));
         iX = iX + iLineWidth + iCharWidth;
         iY = py - iLineHeight/2;
         if((*it)->hasLines()) {
+          p.setPen(QPen((*it)->color(), (*it)->lineWidth(), KstLineStyle[(*it)->lineStyle()]));
           p.drawLine(iX, iY, iX+2*iCharWidth, iY);
         }
         if((*it)->hasPoints()) {
+          p.setPen(QPen((*it)->color(), (*it)->lineWidth()));
           tmppoint.setType((*it)->Point.type());
-          tmppoint.draw(&p, iX+iCharWidth, iY, 600);
+          tmppoint.draw(&p, iX+iCharWidth, iY, (*it)->lineWidth(), 600);
         }
         py += iLineSpace;





More information about the Kst mailing list