diff options
author | William Joye <wjoye@cfa.harvard.edu> | 2020-07-22 18:51:53 (GMT) |
---|---|---|
committer | William Joye <wjoye@cfa.harvard.edu> | 2020-07-22 18:51:53 (GMT) |
commit | db4359912f691ff7c8ea88fcd4d9891d82530546 (patch) | |
tree | 22edfd3b9830dc0fc07cfe37cd40e33e0ed1a2ed /tkblt | |
parent | eee200f2c479baea4e3807b193bbe1cbbb6add7f (diff) | |
download | blt-db4359912f691ff7c8ea88fcd4d9891d82530546.zip blt-db4359912f691ff7c8ea88fcd4d9891d82530546.tar.gz blt-db4359912f691ff7c8ea88fcd4d9891d82530546.tar.bz2 |
minor
Diffstat (limited to 'tkblt')
-rw-r--r-- | tkblt/generic/tkbltGrElemBar.C | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/tkblt/generic/tkbltGrElemBar.C b/tkblt/generic/tkbltGrElemBar.C index 92a9614..8e5ad46 100644 --- a/tkblt/generic/tkbltGrElemBar.C +++ b/tkblt/generic/tkbltGrElemBar.C @@ -443,8 +443,8 @@ void BarElement::map() rp->width = width; if (rp->width & 0x1) rp->width++; - if (rp->width < 0) - rp->width = 0; + if (rp->width < 1) + rp->width = 1; rp->height = height + 1; if (rp->height < 1) @@ -1262,13 +1262,12 @@ void BarElement::printSegments(PSOutput* psPtr, BarPen* penPtr, continue; psPtr->fill3DRectangle(pops->fill, (double)rp->x, (double)rp->y, - (int)rp->width, (int)rp->height, + rp->width, rp->height, pops->borderWidth, pops->relief); if (pops->outlineColor) { psPtr->setForeground(pops->outlineColor); - psPtr->printRectangle((double)rp->x, (double)rp->y, - (int)rp->width, (int)rp->height); + psPtr->printRectangle((double)rp->x, (double)rp->y, rp->width, rp->height); } } } |