[Kst] [Bug 95018] symbol scaling problem in legend

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


------- 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=95018        
arwalker sumusltd com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |FIXED



------- Additional Comments From arwalker sumusltd com  2004-12-13 02:22 -------
CVS commit by arwalker: 

Draw legend of correct size and correct line type.

CCMAIL: 95018-done 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