Line corruption fix for SummaryChart

This commit is contained in:
Mark Watkins 2011-12-05 00:45:36 +10:00
parent f80327a31e
commit 87e0892ac5

View File

@ -373,7 +373,7 @@ void SummaryChart::paint(gGraph & w,int left, int top, int width, int height)
quads->add(x1,py,x1,py-h,col); quads->add(x1,py,x1,py-h,col);
quads->add(x2,py-h,x2,py,col2); quads->add(x2,py-h,x2,py,col2);
if (barw>2) { if (h>0 && barw>2) {
outlines->add(x1,py,x1,py-h,x1,py-h,x2,py-h,blk); outlines->add(x1,py,x1,py-h,x1,py-h,x2,py-h,blk);
outlines->add(x1,py,x2,py,x2,py,x2,py-h,blk); outlines->add(x1,py,x2,py,x2,py,x2,py-h,blk);
} // if (bar } // if (bar