stipchart plots lines even with -linewidth 0
Brought to you by:
ghowlett
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.