mirror of
https://github.com/YosysHQ/nextpnr.git
synced 2026-04-19 17:23:03 +00:00
gui: fix crash on ecp5 gui, fix quadtree tests to not get broken by clangformat
This commit is contained in:
@@ -363,10 +363,16 @@ class Model : public QAbstractItemModel
|
||||
{
|
||||
switch (type) {
|
||||
case ElementType::BEL:
|
||||
if (bel_root_ == nullptr)
|
||||
return boost::none;
|
||||
return bel_root_->getById(id);
|
||||
case ElementType::WIRE:
|
||||
if (wire_root_ == nullptr)
|
||||
return boost::none;
|
||||
return wire_root_->getById(id);
|
||||
case ElementType::PIP:
|
||||
if (pip_root_ == nullptr)
|
||||
return boost::none;
|
||||
return pip_root_->getById(id);
|
||||
case ElementType::CELL:
|
||||
return cell_root_->getById(id);
|
||||
|
||||
@@ -19,6 +19,7 @@
|
||||
|
||||
#include "gtest/gtest.h"
|
||||
#include "nextpnr.h"
|
||||
|
||||
#include "quadtree.h"
|
||||
|
||||
USING_NEXTPNR_NAMESPACE
|
||||
|
||||
Reference in New Issue
Block a user