fix linewidth when done with preview, also avoid to destroy & create main pixmap since it was saved

This commit is contained in:
Stefan Frederik 2020-12-05 04:12:56 +01:00
parent 780b994aeb
commit f138db5aba
1 changed files with 3 additions and 1 deletions

View File

@ -906,7 +906,9 @@ void preview_window(const char *what, const char *tk_win_path, const char *filen
my_free(1144, &current_file);
xctx = save_xctx; /* restore schematic */
save_xctx = NULL;
resetwin(1, 1, 1); /* handle resize. resetwin(create_pixmap, clear_pixmap, force) */
resetwin(0, 0, 1); /* handle resize. resetwin(create_pixmap, clear_pixmap, force) */
change_linewidth(xctx->lw); /* restore correct linewidth since it was changed in preview
* need to do the XSetLineAttributes */
set_modify(xctx->modified);
}
}