diff options
author | Miodrag Milanovic <mmicko@gmail.com> | 2020-07-06 17:29:25 +0200 |
---|---|---|
committer | Miodrag Milanovic <mmicko@gmail.com> | 2020-07-06 17:29:25 +0200 |
commit | bb3dad7ce7dbfdebb4a48b16019900d652293f94 (patch) | |
tree | 854ea2dab3fde5e78260542c727676565f589823 | |
parent | 137241cfef385a68d2ce732a5b3283458790543d (diff) | |
download | nextpnr-bb3dad7ce7dbfdebb4a48b16019900d652293f94.tar.gz nextpnr-bb3dad7ce7dbfdebb4a48b16019900d652293f94.tar.bz2 nextpnr-bb3dad7ce7dbfdebb4a48b16019900d652293f94.zip |
Fix assert, check should be other way arround
-rw-r--r-- | gui/designwidget.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gui/designwidget.cc b/gui/designwidget.cc index a0974ea8..457b7de4 100644 --- a/gui/designwidget.cc +++ b/gui/designwidget.cc @@ -764,7 +764,7 @@ void DesignWidget::onSelectionChanged(int num, const QItemSelection &, const QIt QtProperty *attrsItem = addSubGroup(topItem, "Attributes");
for (auto &item : net->attrs) {
addProperty(attrsItem, QVariant::String, item.first.c_str(ctx),
- item.second.is_string ? item.second.to_string().c_str() : item.second.as_string().c_str());
+ item.second.is_string ? item.second.as_string().c_str() : item.second.to_string().c_str());
}
QtProperty *wiresItem = addSubGroup(topItem, "Wires");
|