diff options
author | Marcin Kościelnicki <marcin@symbioticeda.com> | 2019-03-12 18:18:36 +0100 |
---|---|---|
committer | Marcin Kościelnicki <marcin@symbioticeda.com> | 2019-03-12 18:18:36 +0100 |
commit | a0ad5bc306ce22711cc293c76cb81e1fe89ba81f (patch) | |
tree | 9d65be51d203e13a0e6afebb8b66afc0aee565b5 /gui | |
parent | 4c7306185e68824cd24e666946ca7b277169c16b (diff) | |
download | nextpnr-a0ad5bc306ce22711cc293c76cb81e1fe89ba81f.tar.gz nextpnr-a0ad5bc306ce22711cc293c76cb81e1fe89ba81f.tar.bz2 nextpnr-a0ad5bc306ce22711cc293c76cb81e1fe89ba81f.zip |
gui: Fix Cells/Nets tab contents.
Signed-off-by: Marcin Kościelnicki <marcin@symbioticeda.com>
Diffstat (limited to 'gui')
-rw-r--r-- | gui/designwidget.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gui/designwidget.cc b/gui/designwidget.cc index fc99cd14..1617340b 100644 --- a/gui/designwidget.cc +++ b/gui/designwidget.cc @@ -444,9 +444,9 @@ TreeModel::Model *DesignWidget::getTreeByElementType(ElementType type) return treeModel[1];
if (type == ElementType::PIP)
return treeModel[2];
- if (type == ElementType::NET)
- return treeModel[3];
if (type == ElementType::CELL)
+ return treeModel[3];
+ if (type == ElementType::NET)
return treeModel[4];
return nullptr;
}
@@ -460,9 +460,9 @@ int DesignWidget::getIndexByElementType(ElementType type) return 1;
if (type == ElementType::PIP)
return 2;
- if (type == ElementType::NET)
- return 3;
if (type == ElementType::CELL)
+ return 3;
+ if (type == ElementType::NET)
return 4;
if (type == ElementType::GROUP)
return 5;
|