summaryrefslogtreecommitdiffstats
path: root/src/bltGrLegdOp.C
diff options
context:
space:
mode:
Diffstat (limited to 'src/bltGrLegdOp.C')
-rw-r--r--src/bltGrLegdOp.C9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/bltGrLegdOp.C b/src/bltGrLegdOp.C
index 7a35be2..dfbdb46 100644
--- a/src/bltGrLegdOp.C
+++ b/src/bltGrLegdOp.C
@@ -300,15 +300,14 @@ static int GetOp(Graph* graphPtr, Tcl_Interp* interp,
Legend* legendPtr = graphPtr->legend;
LegendOptions* ops = (LegendOptions*)legendPtr->ops_;
- if (((ops->hide) == 0) && (legendPtr->nEntries > 0)) {
+ if (((ops->hide) == 0) && (legendPtr->nEntries_ > 0)) {
Element* elemPtr;
- if (GetElementFromObj(graphPtr, objv[3], &elemPtr) != TCL_OK) {
+ if (GetElementFromObj(graphPtr, objv[3], &elemPtr) != TCL_OK)
return TCL_ERROR;
- }
- if (elemPtr) {
+
+ if (elemPtr)
Tcl_SetStringObj(Tcl_GetObjResult(interp), elemPtr->name(),-1);
- }
}
return TCL_OK;
}