=================================================================== RCS file: /home/cvs/OpenXM_contrib2/asir2000/plot/if.c,v retrieving revision 1.9 retrieving revision 1.10 diff -u -p -r1.9 -r1.10 --- OpenXM_contrib2/asir2000/plot/if.c 2002/07/10 05:29:35 1.9 +++ OpenXM_contrib2/asir2000/plot/if.c 2002/07/29 03:08:16 1.10 @@ -45,7 +45,7 @@ * DEVELOPER SHALL HAVE NO LIABILITY IN CONNECTION WITH THE USE, * PERFORMANCE OR NON-PERFORMANCE OF THE SOFTWARE. * - * $OpenXM: OpenXM_contrib2/asir2000/plot/if.c,v 1.8 2001/12/25 02:39:07 noro Exp $ + * $OpenXM: OpenXM_contrib2/asir2000/plot/if.c,v 1.9 2002/07/10 05:29:35 noro Exp $ */ #include "ca.h" #include "parse.h" @@ -270,7 +270,13 @@ int draw_obj(NODE arg) index = QTOS((Q)ARG0(arg)); can = canvas[index]; - if ( !can || !can->window ) { + if ( !can && closed_canvas[index] ) { + canvas[index] = closed_canvas[index]; + closed_canvas[index] = 0; + can = canvas[index]; + popup_canvas(index); + current_can = can; + } else if ( !can || (can && !can->window) ) { set_lasterror("draw_obj : canvas does not exist"); return -1; }