Small bugfix: no 'nil' layer generated when no layer is selected for a PCell

This commit is contained in:
Matthias Koefferlein 2021-12-25 18:38:39 +01:00
parent 9cd77e5cec
commit 2b9193331e
1 changed files with 2 additions and 0 deletions

View File

@ -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 ());