fix: xschem setprop instance <tok> <val> did not set schematic to modified state, so following xschem save did not work
This commit is contained in:
parent
75a3134051
commit
b3f4c4f5f7
|
|
@ -5836,10 +5836,10 @@ int xschem(ClientData clientdata, Tcl_Interp *interp, int argc, const char * arg
|
||||||
if(old_name) my_free(_ALLOC_ID_, &old_name);
|
if(old_name) my_free(_ALLOC_ID_, &old_name);
|
||||||
set_inst_flags(&xctx->inst[inst]);
|
set_inst_flags(&xctx->inst[inst]);
|
||||||
hash_names(inst, XINSERT);
|
hash_names(inst, XINSERT);
|
||||||
|
set_modify(1); /* set modified state */
|
||||||
if(!fast) {
|
if(!fast) {
|
||||||
/* new symbol bbox after prop changes (may change due to text length) */
|
/* new symbol bbox after prop changes (may change due to text length) */
|
||||||
symbol_bbox(inst, &xctx->inst[inst].x1, &xctx->inst[inst].y1, &xctx->inst[inst].x2, &xctx->inst[inst].y2);
|
symbol_bbox(inst, &xctx->inst[inst].x1, &xctx->inst[inst].y1, &xctx->inst[inst].x2, &xctx->inst[inst].y2);
|
||||||
set_modify(-2); /* reset floaters caches */
|
|
||||||
draw();
|
draw();
|
||||||
}
|
}
|
||||||
my_free(_ALLOC_ID_, &translated_sym);
|
my_free(_ALLOC_ID_, &translated_sym);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue