Summary: | symbol scaling problem in legend | ||
---|---|---|---|
Product: | [Applications] kst | Reporter: | Nicolas Brisset <nicolas.brisset> |
Component: | general | Assignee: | kst |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | NOR | ||
Version: | 1.x | ||
Target Milestone: | --- | ||
Platform: | unspecified | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: |
Description
Nicolas Brisset
2004-12-12 21:40:04 UTC
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; |