Menu

#114 stipchart plots lines even with -linewidth 0

open
nobody
None
5
2004-09-02
2004-09-02
Juan C. Gil
No

The stripchart widgets plots lines with line width 1 even
if -linewidth is given.

The problem appears to be in the DrawNormalLine()
function in bltGrLine.c. Where you are about to draw the
stripchart segments with Blt_Draw2DSegments, you
first ask whether the line is zero pixels width to avoid
drawing invisible lines:

if ((stylePtr->nStrips > 0) && (penPtr-rrorBarLineWidth
> 0)) {
Blt_Draw2DSegments(graphPtr->display,
drawable, penPtr->traceGC, stylePtr->strips, stylePtr-
>nStrips);
}

But notice that the if() condition checks for penPtr-
errorBarLineWidth, while that should read penPtr-
traceWidth.

With this change it works OK.

Unfortunately, I'm not able to path the file directly.

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.