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.
This commit is contained in:
Tim Edwards 2021-02-23 09:58:52 -05:00
parent 2e9c554f2c
commit 9a79a1eee2
3 changed files with 11 additions and 2 deletions

View File

@ -1 +1 @@
8.3.131 8.3.132

View File

@ -538,7 +538,8 @@ PlotSetParam(name, value)
{ {
int j; 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++) for (j = 0 ; plotTypeNames[j] != NULL; j++)
{ {
TxError("\t%s\n", plotTypeNames[j]); TxError("\t%s\n", plotTypeNames[j]);

View File

@ -436,6 +436,14 @@ proc magic::gencell_change {instname gencell_type library parameters} {
# then keep the old instance name. # then keep the old instance name.
if {[string first $old_gname $instname] != 0} { if {[string first $old_gname $instname] != 0} {
set newinstname $instname 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 identify $newinstname