diff options
author | joye <joye> | 2014-05-02 18:45:58 (GMT) |
---|---|---|
committer | joye <joye> | 2014-05-02 18:45:58 (GMT) |
commit | 8180f118650ad138177ffae5ffed5d2156fb4075 (patch) | |
tree | facb1d05c5ce756d53f5841aed52a653043b31d5 /src/bltGrLegdOp.C | |
parent | 1e98c4811029b80fbb693a99ad1439f9603cc2fd (diff) | |
download | blt-8180f118650ad138177ffae5ffed5d2156fb4075.zip blt-8180f118650ad138177ffae5ffed5d2156fb4075.tar.gz blt-8180f118650ad138177ffae5ffed5d2156fb4075.tar.bz2 |
*** empty log message ***
Diffstat (limited to 'src/bltGrLegdOp.C')
-rw-r--r-- | src/bltGrLegdOp.C | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/bltGrLegdOp.C b/src/bltGrLegdOp.C index c76b72f..9323cdf 100644 --- a/src/bltGrLegdOp.C +++ b/src/bltGrLegdOp.C @@ -446,8 +446,9 @@ static int SelectionSetOp(ClientData clientData, Tcl_Interp* interp, Element *firstPtr; if (legendPtr->getElementFromObj(objv[4], &firstPtr) != TCL_OK) return TCL_ERROR; + ElementOptions* eops = (ElementOptions*)firstPtr->ops(); - if ((firstPtr->hide_) && ((legendPtr->flags & SELECT_CLEAR)==0)) { + if ((eops->hide) && ((legendPtr->flags & SELECT_CLEAR)==0)) { Tcl_AppendResult(interp, "can't select hidden node \"", Tcl_GetString(objv[4]), "\"", (char *)NULL); return TCL_ERROR; @@ -457,8 +458,9 @@ static int SelectionSetOp(ClientData clientData, Tcl_Interp* interp, if (objc > 5) { if (legendPtr->getElementFromObj(objv[5], &lastPtr) != TCL_OK) return TCL_ERROR; + ElementOptions* eops = (ElementOptions*)firstPtr->ops(); - if (lastPtr->hide_ && ((legendPtr->flags & SELECT_CLEAR) == 0)) { + if (eops->hide && ((legendPtr->flags & SELECT_CLEAR) == 0)) { Tcl_AppendResult(interp, "can't select hidden node \"", Tcl_GetString(objv[5]), "\"", (char *)NULL); return TCL_ERROR; |