Ignore:
Timestamp:
Dec 19, 2014, 5:12:19 PM (5 years ago)
Author:
ldelgass
Message:

Fix for ExecuteCommand?

File:
1 edited

Legend:

Unmodified
Added
Removed
  • nanovis/branches/1.1/Command.cpp

    r4874 r4879  
    141141#endif
    142142
     143    lastCmdStatus = TCL_OK;
    143144    result = Tcl_EvalEx(interp, Tcl_DStringValue(dsPtr),
    144145                        Tcl_DStringLength(dsPtr),
     
    146147    Tcl_DStringSetLength(dsPtr, 0);
    147148
     149    if (lastCmdStatus == TCL_BREAK) {
     150        return TCL_BREAK;
     151    }
     152    lastCmdStatus = result;
    148153    if (result != TCL_OK) {
    149154        TRACE("Error: %d", result);
Note: See TracChangeset for help on using the changeset viewer.