summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjoye <joye>2014-03-18 16:58:32 (GMT)
committerjoye <joye>2014-03-18 16:58:32 (GMT)
commit94a3b1be5cde861edcb32973ef1125125c477e79 (patch)
treef2e81c2595a4cad6066ac74eb915919e4aac39dc
parentab93911357f921ec15187f510cda811f276d6192 (diff)
downloadblt-94a3b1be5cde861edcb32973ef1125125c477e79.zip
blt-94a3b1be5cde861edcb32973ef1125125c477e79.tar.gz
blt-94a3b1be5cde861edcb32973ef1125125c477e79.tar.bz2
*** empty log message ***
-rw-r--r--library/graph.tcl8
-rw-r--r--src/bltGrAxis.C2
-rw-r--r--src/bltGrElemOp.C2
-rw-r--r--src/bltGrMarker.C2
-rw-r--r--src/bltGrPenOp.C2
5 files changed, 8 insertions, 8 deletions
diff --git a/library/graph.tcl b/library/graph.tcl
index 4a49a88..e25af24 100644
--- a/library/graph.tcl
+++ b/library/graph.tcl
@@ -421,7 +421,7 @@ proc blt::FlashPoint { g name index count } {
after 200 blt::FlashPoint $g $name $index $count
update
} else {
- eval $g marker delete [$g marker names "bltClosest_*"]
+ catch {eval $g marker delete [$g marker names "bltClosest_*"]}
}
}
@@ -537,7 +537,7 @@ proc blt::ZoomStack::Pop { g } {
proc blt::ZoomStack::Push { g } {
variable _private
- eval $g marker delete [$g marker names "zoom*"]
+ catch {eval $g marker delete [$g marker names "zoom*"]}
if { [info exists _private($g,afterId)] } {
after cancel $_private($g,afterId)
}
@@ -617,7 +617,7 @@ proc blt::ZoomStack::Reset { g } {
if { ![info exists _private($g,corner)] } {
Init $g
}
- eval $g marker delete [$g marker names "zoom*"]
+ catch {eval $g marker delete [$g marker names "zoom*"]}
if { $_private($g,corner) == "A" } {
# Reset the whole axis
@@ -722,7 +722,7 @@ proc blt::ZoomStack::DragFinish { g x y } {
if { [DragMotion $g $x $y] } {
Push $g
} else {
- eval $g marker delete [$g marker names "zoom*"]
+ catch {eval $g marker delete [$g marker names "zoom*"]}
if { [info exists _private($g,afterId)] } {
after cancel $_private($g,afterId)
}
diff --git a/src/bltGrAxis.C b/src/bltGrAxis.C
index 3d9783b..65ded79 100644
--- a/src/bltGrAxis.C
+++ b/src/bltGrAxis.C
@@ -1006,7 +1006,7 @@ static int AxisDeleteOp(Tcl_Interp* interp, Graph* graphPtr,
int objc, Tcl_Obj* const objv[])
{
if (objc<4)
- return TCL_OK;
+ return TCL_ERROR;
Axis *axisPtr;
if (GetAxisFromObj(interp, graphPtr, objv[3], &axisPtr) != TCL_OK) {
diff --git a/src/bltGrElemOp.C b/src/bltGrElemOp.C
index 184a454..a39e497 100644
--- a/src/bltGrElemOp.C
+++ b/src/bltGrElemOp.C
@@ -645,7 +645,7 @@ static int DeleteOp(Graph* graphPtr, Tcl_Interp* interp,
int objc, Tcl_Obj* const objv[])
{
if (objc<4)
- return TCL_OK;
+ return TCL_ERROR;
Element* elemPtr;
if (Blt_GetElement(interp, graphPtr, objv[3], &elemPtr) != TCL_OK) {
diff --git a/src/bltGrMarker.C b/src/bltGrMarker.C
index f17a19f..18da1c6 100644
--- a/src/bltGrMarker.C
+++ b/src/bltGrMarker.C
@@ -413,7 +413,7 @@ static int DeleteOp(Graph* graphPtr, Tcl_Interp* interp,
int objc, Tcl_Obj* const objv[])
{
if (objc<4)
- return TCL_OK;
+ return TCL_ERROR;
Marker *markerPtr;
if (GetMarkerFromObj(NULL, graphPtr, objv[3], &markerPtr) != TCL_OK) {
diff --git a/src/bltGrPenOp.C b/src/bltGrPenOp.C
index ed28b82..c49d9a1 100644
--- a/src/bltGrPenOp.C
+++ b/src/bltGrPenOp.C
@@ -265,7 +265,7 @@ static int DeleteOp(Tcl_Interp* interp, Graph* graphPtr,
int objc, Tcl_Obj* const objv[])
{
if (objc<4)
- return TCL_OK;
+ return TCL_ERROR;
Pen* penPtr;
if (GetPenFromObj(interp, graphPtr, objv[3], &penPtr) != TCL_OK) {