mirror of https://github.com/KLayout/klayout.git
Small bugfix: no 'nil' layer generated when no layer is selected for a PCell
This commit is contained in:
parent
9cd77e5cec
commit
2b9193331e
|
|
@ -99,6 +99,8 @@ static void set_value (const db::PCellParameterDeclaration &p, QWidget *widget,
|
|||
db::LayerProperties lp;
|
||||
if (value.is_user<db::LayerProperties> ()) {
|
||||
lp = value.to_user<db::LayerProperties> ();
|
||||
} else if (value.is_nil ()) {
|
||||
// empty LayerProperties
|
||||
} else {
|
||||
std::string s = value.to_string ();
|
||||
tl::Extractor ex (s.c_str ());
|
||||
|
|
|
|||
Loading…
Reference in New Issue