diff options
Diffstat (limited to 'gui/designwidget.cc')
| -rw-r--r-- | gui/designwidget.cc | 6 | 
1 files changed, 6 insertions, 0 deletions
diff --git a/gui/designwidget.cc b/gui/designwidget.cc index 749c25a6..bd2578de 100644 --- a/gui/designwidget.cc +++ b/gui/designwidget.cc @@ -318,6 +318,12 @@ void DesignWidget::newContext(Context *ctx)                  wireMap[std::pair<int, int>(wire.location.x, wire.location.y)].push_back(wire);
              }
  #endif
 +#ifdef ARCH_GOWIN
 +            for (const auto &wire : ctx->getWires()) {
 +                WireInfo wi = ctx->wire_info(wire);
 +                wireMap[std::pair<int, int>(wi.x, wi.y)].push_back(wire);
 +            }
 +#endif
              auto wireGetter = [](Context *ctx, WireId id) { return ctx->getWireName(id); };
              getTreeByElementType(ElementType::WIRE)
                      ->loadData(ctx,
  | 
