Merge pull request #455 from KLayout/issue-453

Fixed #453 (Crash when using 'inverse' feature of TEXT PCell)
This commit is contained in:
Matthias Köfferlein 2019-12-18 18:09:26 +01:00 committed by GitHub
commit e2e761b999
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 31 additions and 1 deletions

View File

@ -1,5 +1,21 @@
0.26.2 (xxxx-xx-xx):
0.26.2 (2019-12-17):
* Bugfix: %GITHUB%/issues/453
A crash happened when the "inverse" button is used on the TEXT
PCell
* Bugfix: %GITHUB%/issues/449
The Qt windows styling plugin is now installed too on Windows.
* Bugfix: %GITHUB%/issues/448
The LVSDB database wasn't written with the proper device
class statements in short form.
* Bugfix: %GITHUB%/issues/447
Net extraction did not work properly on a specific test case
with folded and interleaving array instances.
* Bugfix: %GITHUB%/issues/445
"Selection/Merge shapes" gave cryptic message when instances are selected
* Enhancement: %GITHUB%/issues/444
Support for net joining though labels also for specific
subcells (here: to support double-height standard cells)
* Enhancement: %GITHUB%/issues/438
Redefining a circuit in Spice netlists will give an error now
* Bugfix: %GITHUB%/issues/445

View File

@ -48,7 +48,9 @@ static void set_value (const db::PCellParameterDeclaration &p, const db::Layout
{
QLineEdit *le = dynamic_cast<QLineEdit *> (widget);
if (le) {
le->blockSignals (true);
le->setText (value.cast<int> ().to_qstring ());
le->blockSignals (false);
}
}
break;
@ -57,7 +59,9 @@ static void set_value (const db::PCellParameterDeclaration &p, const db::Layout
{
QLineEdit *le = dynamic_cast<QLineEdit *> (widget);
if (le) {
le->blockSignals (true);
le->setText (value.cast<double> ().to_qstring ());
le->blockSignals (false);
}
}
break;
@ -66,7 +70,9 @@ static void set_value (const db::PCellParameterDeclaration &p, const db::Layout
{
QLineEdit *le = dynamic_cast<QLineEdit *> (widget);
if (le) {
le->blockSignals (true);
le->setText (value.to_qstring ());
le->blockSignals (false);
}
}
break;
@ -75,7 +81,9 @@ static void set_value (const db::PCellParameterDeclaration &p, const db::Layout
{
QLineEdit *le = dynamic_cast<QLineEdit *> (widget);
if (le) {
le->blockSignals (true);
le->setText (value.to_qstring ());
le->blockSignals (false);
}
}
break;
@ -94,7 +102,9 @@ static void set_value (const db::PCellParameterDeclaration &p, const db::Layout
lp.read (ex);
}
ly->blockSignals (true);
ly->set_current_layer (lp);
ly->blockSignals (false);
}
}
@ -104,7 +114,9 @@ static void set_value (const db::PCellParameterDeclaration &p, const db::Layout
{
QCheckBox *cbx = dynamic_cast<QCheckBox *> (widget);
if (cbx) {
cbx->blockSignals (true);
cbx->setChecked (value.to_bool ());
cbx->blockSignals (false);
}
}
break;
@ -120,7 +132,9 @@ static void set_value (const db::PCellParameterDeclaration &p, const db::Layout
int i = 0;
for (std::vector<tl::Variant>::const_iterator c = p.get_choices ().begin (); c != p.get_choices ().end (); ++c, ++i) {
if (*c == value) {
cb->blockSignals (true);
cb->setCurrentIndex (i);
cb->blockSignals (false);
}
}
}