summaryrefslogtreecommitdiffstats
path: root/src/bltGrLegdOp.C
diff options
context:
space:
mode:
Diffstat (limited to 'src/bltGrLegdOp.C')
-rw-r--r--src/bltGrLegdOp.C15
1 files changed, 7 insertions, 8 deletions
diff --git a/src/bltGrLegdOp.C b/src/bltGrLegdOp.C
index 769656c..af5fcce 100644
--- a/src/bltGrLegdOp.C
+++ b/src/bltGrLegdOp.C
@@ -68,10 +68,9 @@ static int LegendObjConfigure(Graph* graphPtr, Tcl_Interp* interp,
Tk_RestoreSavedOptions(&savedOptions);
}
+ graphPtr->flags |= mask;
if (legendPtr->configure() != TCL_OK)
return TCL_ERROR;
-
- graphPtr->flags |= LAYOUT;
graphPtr->eventuallyRedraw();
break;
@@ -254,7 +253,7 @@ static int FocusOp(ClientData clientData, Tcl_Interp* interp,
Blt_SetFocusItem(legendPtr->bindTable_,legendPtr->focusPtr_,CID_LEGEND_ENTRY);
- graphPtr->flags |= LAYOUT;
+ graphPtr->flags |= CACHE;
graphPtr->eventuallyRedraw();
if (legendPtr->focusPtr_)
@@ -317,7 +316,7 @@ static int SelectionAnchorOp(ClientData clientData, Tcl_Interp* interp,
if (elemPtr)
Tcl_SetStringObj(Tcl_GetObjResult(interp), elemPtr->name_, -1);
- graphPtr->flags |= LAYOUT;
+ graphPtr->flags |= CACHE;
graphPtr->eventuallyRedraw();
return TCL_OK;
@@ -330,7 +329,7 @@ static int SelectionClearallOp(ClientData clientData, Tcl_Interp* interp,
Legend* legendPtr = graphPtr->legend_;
legendPtr->clearSelection();
- graphPtr->flags |= LAYOUT;
+ graphPtr->flags |= CACHE;
graphPtr->eventuallyRedraw();
return TCL_OK;
@@ -388,7 +387,7 @@ static int SelectionMarkOp(ClientData clientData, Tcl_Interp* interp,
if (ops->selectCmd)
legendPtr->eventuallyInvokeSelectCmd();
- graphPtr->flags |= LAYOUT;
+ graphPtr->flags |= CACHE;
graphPtr->eventuallyRedraw();
}
return TCL_OK;
@@ -465,7 +464,7 @@ static int SelectionSetOp(ClientData clientData, Tcl_Interp* interp,
if (ops->selectCmd)
legendPtr->eventuallyInvokeSelectCmd();
- graphPtr->flags |= LAYOUT;
+ graphPtr->flags |= CACHE;
graphPtr->eventuallyRedraw();
return TCL_OK;
@@ -494,7 +493,7 @@ static void LostSelectionProc(ClientData clientData)
if (ops->exportSelection)
legendPtr->clearSelection();
- graphPtr->flags |= LAYOUT;
+ graphPtr->flags |= CACHE;
graphPtr->eventuallyRedraw();
}