1
0
mirror of https://github.com/YosysHQ/nextpnr.git synced 2026-04-05 05:23:06 +00:00

Fix assert, check should be other way arround

This commit is contained in:
Miodrag Milanovic
2020-07-06 17:29:25 +02:00
parent 137241cfef
commit bb3dad7ce7

View File

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