From 517903dafabce0589c0b072a1aa6744b44d81f3c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matthias=20K=C3=B6fferlein?= Date: Wed, 25 Nov 2020 21:29:40 +0100 Subject: [PATCH] Fixed #647 (text orientation not working on search & replace) (#684) * Fixed a compiler warning * Fixed #647 (search & replace not working for text rotation) --- src/edt/edt/edtInstPropertiesPage.cc | 2 +- src/lay/lay/laySearchReplacePropertiesWidgets.cc | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/edt/edt/edtInstPropertiesPage.cc b/src/edt/edt/edtInstPropertiesPage.cc index 5266ff485..08a4c27fa 100644 --- a/src/edt/edt/edtInstPropertiesPage.cc +++ b/src/edt/edt/edtInstPropertiesPage.cc @@ -439,7 +439,7 @@ InstPropertiesPage::create_applicator (db::Cell & /*cell*/, const db::Instance & appl->add (new ChangeTargetCellApplicator (inst_cell_index)); } - } catch (tl::Exception &ex) { + } catch (tl::Exception &) { has_pcell_error = true; } diff --git a/src/lay/lay/laySearchReplacePropertiesWidgets.cc b/src/lay/lay/laySearchReplacePropertiesWidgets.cc index c135d9307..42e7d8979 100644 --- a/src/lay/lay/laySearchReplacePropertiesWidgets.cc +++ b/src/lay/lay/laySearchReplacePropertiesWidgets.cc @@ -200,7 +200,7 @@ add_orientation_condition (std::string &expr, QComboBox *op, QComboBox *value, c expr += attribute; expr += " "; expr += tl::to_string (op->currentText ()); - expr += " Trans." + v; + expr += " Trans." + v + ".rot"; } } @@ -308,6 +308,7 @@ add_orientation_assignment (std::string &expr, QComboBox *value, const char *att expr += attribute; expr += " = Trans."; expr += v; + expr += ".rot"; } }