Commit 746c23fa authored by Claes Sjofors's avatar Claes Sjofors

Xtt command 'close graph ' to close current graph added

parent ffe32ebe
......@@ -52,6 +52,7 @@
#include "rt_gdh.h"
#include "pwr_privilege.h"
#include "rt_gdh_msg.h"
#include "glow_msg.h"
#include "co_cdh.h"
#include "co_ccm.h"
#include "co_time.h"
......@@ -4605,6 +4606,18 @@ static int xnav_close_func( void *client_data,
return XNAV__HOLDCOMMAND;
}
if ( cdh_NoCaseStrcmp(file_str, "$current") == 0) {
if ( xnav->current_cmd_ctx) {
xnav->appl.remove( (void *)xnav->current_cmd_ctx);
delete (XttGe *)xnav->current_cmd_ctx;
return GLOW__TERMINATED;
}
else {
xnav->message('E', "No current graph");
return XNAV__SUCCESS;
}
}
xnav->close_graph( file_str, instance_p);
return XNAV__SUCCESS;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment