diff options
author | William Joye <wjoye@cfa.harvard.edu> | 2018-10-26 18:08:40 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-10-26 18:08:40 (GMT) |
commit | efb615a0d4b477575e20751fa63a6f7a0f97e931 (patch) | |
tree | 0ca9a91f90a1f9724af816d7de4f7836198bb9c3 /generic/tkbltGrAxis.C | |
parent | 11d2be66bad300683f2a71ec5c1a716a501dde66 (diff) | |
parent | 6b41ee3cff858ded8d6af891e7725211ea0aba98 (diff) | |
download | blt-3.2.13.zip blt-3.2.13.tar.gz blt-3.2.13.tar.bz2 |
Merge pull request #24 from prs-de/fix-textstyle-memleakv3.2.13
Fix textstyle memleak
Diffstat (limited to 'generic/tkbltGrAxis.C')
-rw-r--r-- | generic/tkbltGrAxis.C | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/generic/tkbltGrAxis.C b/generic/tkbltGrAxis.C index 738acc3..be3e995 100644 --- a/generic/tkbltGrAxis.C +++ b/generic/tkbltGrAxis.C @@ -685,7 +685,7 @@ void Axis::drawLimits(Drawable drawable) ops->limitsTextStyle.anchor = TK_ANCHOR_SE; int ww, hh; - ts.drawText2(drawable, maxPtr, graphPtr_->right_, hMax, &ww, &hh); + ts.drawTextBBox(drawable, maxPtr, graphPtr_->right_, hMax, &ww, &hh); hMax -= (hh + spacing); } else { @@ -693,7 +693,7 @@ void Axis::drawLimits(Drawable drawable) ops->limitsTextStyle.anchor = TK_ANCHOR_NW; int ww, hh; - ts.drawText2(drawable, maxPtr, vMax, graphPtr_->top_, &ww, &hh); + ts.drawTextBBox(drawable, maxPtr, vMax, graphPtr_->top_, &ww, &hh); vMax += (ww + spacing); } } @@ -704,14 +704,14 @@ void Axis::drawLimits(Drawable drawable) ops->limitsTextStyle.angle = 90.0; int ww, hh; - ts.drawText2(drawable, minPtr, graphPtr_->left_, hMin, &ww, &hh); + ts.drawTextBBox(drawable, minPtr, graphPtr_->left_, hMin, &ww, &hh); hMin -= (hh + spacing); } else { ops->limitsTextStyle.angle = 0.0; int ww, hh; - ts.drawText2(drawable, minPtr, vMin, graphPtr_->bottom_, &ww, &hh); + ts.drawTextBBox(drawable, minPtr, vMin, graphPtr_->bottom_, &ww, &hh); vMin += (ww + spacing); } } |