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:
parent
2e9c554f2c
commit
9a79a1eee2
|
|
@ -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]);
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue