summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWilliam Joye <wjoye@cfa.harvard.edu>2019-08-04 16:56:18 (GMT)
committerWilliam Joye <wjoye@cfa.harvard.edu>2019-08-04 16:56:18 (GMT)
commit82a6d57b3b7afe7a5f33d954664adc43758de014 (patch)
tree50bb9a8a6c4b1495e4eff46b860706670cf36d18
parent6225c19be0c2d5a1cf0eab6e6cd3839451728d78 (diff)
downloadblt-82a6d57b3b7afe7a5f33d954664adc43758de014.zip
blt-82a6d57b3b7afe7a5f33d954664adc43758de014.tar.gz
blt-82a6d57b3b7afe7a5f33d954664adc43758de014.tar.bz2
fix legend with fix margin errorv3.2.18
-rw-r--r--generic/tkbltGraphSup.C12
1 files changed, 8 insertions, 4 deletions
diff --git a/generic/tkbltGraphSup.C b/generic/tkbltGraphSup.C
index d5eb3d1..5071cac 100644
--- a/generic/tkbltGraphSup.C
+++ b/generic/tkbltGraphSup.C
@@ -211,16 +211,20 @@ void Graph::layoutGraph()
if (!legend_->isHidden()) {
switch (legend_->position()) {
case Legend::RIGHT:
- right += legend_->width_ + 2;
+ if (!ops->rightMargin.reqSize)
+ right += legend_->width_ + 2;
break;
case Legend::LEFT:
- left += legend_->width_ + 2;
+ if (!ops->leftMargin.reqSize)
+ left += legend_->width_ + 2;
break;
case Legend::TOP:
- top += legend_->height_ + 2;
+ if (!ops->topMargin.reqSize)
+ top += legend_->height_ + 2;
break;
case Legend::BOTTOM:
- bottom += legend_->height_ + 2;
+ if (!ops->bottomMargin.reqSize)
+ bottom += legend_->height_ + 2;
break;
case Legend::XY:
case Legend::PLOT: