From b3f4c4f5f7838fee4e4d7b4798e6f8ca11517ed6 Mon Sep 17 00:00:00 2001 From: stefan schippers Date: Mon, 27 Apr 2026 18:21:39 +0200 Subject: [PATCH] fix: xschem setprop instance did not set schematic to modified state, so following xschem save did not work --- src/scheduler.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/scheduler.c b/src/scheduler.c index 70de5077..e9da92d1 100644 --- a/src/scheduler.c +++ b/src/scheduler.c @@ -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); set_inst_flags(&xctx->inst[inst]); hash_names(inst, XINSERT); + set_modify(1); /* set modified state */ if(!fast) { /* 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); - set_modify(-2); /* reset floaters caches */ draw(); } my_free(_ALLOC_ID_, &translated_sym);