From 6dd5f4d7e31346a592cc65f67477d980ecbf5159 Mon Sep 17 00:00:00 2001 From: Tim Edwards Date: Wed, 22 Mar 2023 15:28:00 -0400 Subject: [PATCH] Corrected problem caused by adding a scrollbar to the parameters window in the toolkit, which was to the "tkwait" command, which waits for a change in state. What was intended was to wait for a change in state to visible only; once visible, the "tkwait" command should not invoked or else the process will block. --- VERSION | 2 +- tcltk/toolkit.tcl | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/VERSION b/VERSION index e77e1a74..a72e3afe 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -8.3.384 +8.3.385 diff --git a/tcltk/toolkit.tcl b/tcltk/toolkit.tcl index 679bb3df..fcab3601 100644 --- a/tcltk/toolkit.tcl +++ b/tcltk/toolkit.tcl @@ -1443,7 +1443,9 @@ proc magic::gencell_dialog {instname gencell_type library parameters} { raise .params # Wait for window to become visible to set the scroll region - tkwait visibility .params.body.area + if {[catch {winfo children .params.body.area}]} { + tkwait visibility .params.body.area + } .params.body.area config -scrollregion [.params.body.area bbox all] }