From 9a79a1eee26d650f6ed1f433fce7f46dbfec4137 Mon Sep 17 00:00:00 2001 From: Tim Edwards Date: Tue, 23 Feb 2021 09:58:52 -0500 Subject: [PATCH] Fixed a minor error in the plot command that is missing a value in the print statement on detecting an invalid plot parameter value name. --- VERSION | 2 +- plot/plotMain.c | 3 ++- tcltk/toolkit.tcl | 8 ++++++++ 3 files changed, 11 insertions(+), 2 deletions(-) diff --git a/VERSION b/VERSION index c11794e5..287d1797 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -8.3.131 +8.3.132 diff --git a/plot/plotMain.c b/plot/plotMain.c index cce614c8..9583c2d4 100644 --- a/plot/plotMain.c +++ b/plot/plotMain.c @@ -538,7 +538,8 @@ PlotSetParam(name, value) { int j; - TxError("%s is not a supported plot type. Plot types are:\n"); + TxError("%s is not a supported plot type. Plot types are:\n", + value); for (j = 0 ; plotTypeNames[j] != NULL; j++) { TxError("\t%s\n", plotTypeNames[j]); diff --git a/tcltk/toolkit.tcl b/tcltk/toolkit.tcl index b3d43019..adaaee99 100644 --- a/tcltk/toolkit.tcl +++ b/tcltk/toolkit.tcl @@ -436,6 +436,14 @@ proc magic::gencell_change {instname gencell_type library parameters} { # then keep the old instance name. if {[string first $old_gname $instname] != 0} { set newinstname $instname + } else { + # The buttons "Apply" and "Okay" need to be changed for the new + # instance name + catch {.params.buttons.apply config -command \ + "magic::gencell_change $newinstname $gencell_type $library {}"} + catch {.params.buttons.okay config -command \ + "magic::gencell_change $newinstname $gencell_type $library {} ;\ + destroy .params"} } } identify $newinstname