From db4359912f691ff7c8ea88fcd4d9891d82530546 Mon Sep 17 00:00:00 2001 From: William Joye Date: Wed, 22 Jul 2020 14:51:53 -0400 Subject: minor --- tkblt/generic/tkbltGrElemBar.C | 9 ++++----- 1 file 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); } } } -- cgit v0.12