summaryrefslogtreecommitdiffstats
path: root/generic
diff options
context:
space:
mode:
authorAdrián Medraño Calvo <adrian@medranocalvo.com>2017-07-27 10:41:08 (GMT)
committerAdrián Medraño Calvo <adrian@medranocalvo.com>2017-07-27 10:42:15 (GMT)
commitdc04360d2fb2a2760e46aa2fbabe124e1ed5306f (patch)
tree7ed5b24b6dc0b2add6ad4f5d512d5b56d6d433df /generic
parent04d02fd58bb008b716d7a866832195d780239ed4 (diff)
downloadblt-dc04360d2fb2a2760e46aa2fbabe124e1ed5306f.zip
blt-dc04360d2fb2a2760e46aa2fbabe124e1ed5306f.tar.gz
blt-dc04360d2fb2a2760e46aa2fbabe124e1ed5306f.tar.bz2
Update axis' margin when using it
Diffstat (limited to 'generic')
-rw-r--r--generic/tkbltGrXAxisOp.C2
1 files changed, 2 insertions, 0 deletions
diff --git a/generic/tkbltGrXAxisOp.C b/generic/tkbltGrXAxisOp.C
index b431a43..ac788ff 100644
--- a/generic/tkbltGrXAxisOp.C
+++ b/generic/tkbltGrXAxisOp.C
@@ -161,6 +161,7 @@ static int UseOp(ClientData clientData, Tcl_Interp* interp,
Axis* axisPtr = (Axis*)Chain_GetValue(link);
axisPtr->link = NULL;
axisPtr->use_ =0;
+ axisPtr->margin_ = MARGIN_NONE;
// Clear the axis type if it's not currently used
if (axisPtr->refCount_ == 0)
axisPtr->setClass(CID_NONE);
@@ -190,6 +191,7 @@ static int UseOp(ClientData clientData, Tcl_Interp* interp,
axisPtr->chain = chain;
axisPtr->use_ =1;
+ axisPtr->margin_ = margin;
}
graphPtr->flags |= RESET;