summaryrefslogtreecommitdiffstats
path: root/tkblt
diff options
context:
space:
mode:
Diffstat (limited to 'tkblt')
-rw-r--r--tkblt/generic/tkbltGrElemBar.C4
1 files changed, 3 insertions, 1 deletions
diff --git a/tkblt/generic/tkbltGrElemBar.C b/tkblt/generic/tkbltGrElemBar.C
index 6698760..e31f9ad 100644
--- a/tkblt/generic/tkbltGrElemBar.C
+++ b/tkblt/generic/tkbltGrElemBar.C
@@ -499,7 +499,9 @@ void BarElement::extents(Region2d *regPtr)
int nPoints = NUMBEROFPOINTS(ops);
- double middle = 0.5;
+ double barWidth = (ops->barWidth > 0.0) ? ops->barWidth : gops->barWidth;
+ double middle = barWidth/2.;
+ // double middle = 0.5;
regPtr->left = ops->coords.x->min() - middle;
regPtr->right = ops->coords.x->max() + middle;