From 1b737c4ac71bc358d0f9061df5dfc668c55cc118 Mon Sep 17 00:00:00 2001 From: stefan schippers Date: Thu, 9 Nov 2023 19:13:55 +0100 Subject: [PATCH] reset floater caches on save(As) schematic --- src/save.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/save.c b/src/save.c index 80b7ecf3..20b22fe2 100644 --- a/src/save.c +++ b/src/save.c @@ -2614,10 +2614,12 @@ int save_schematic(const char *schname) /* 20171020 added return value */ if(!xctx->sch[xctx->currsch]) { /* no current schematic name -> assign new name */ my_strdup2(_ALLOC_ID_, &xctx->sch[xctx->currsch], schname); set_modify(-1); /* set title to new filename */ + set_modify(-2); /* clear floater caches */ } else if(strcmp(schname, xctx->sch[xctx->currsch])) { /* user asks to save to a different filename */ my_strdup2(_ALLOC_ID_, &xctx->sch[xctx->currsch], schname); set_modify(-1); /* set title to new filename */ + set_modify(-2); /* clear floater caches */ } else { /* user asks to save to same filename */ if(!stat(xctx->sch[xctx->currsch], &buf)) {