diff --git a/comdel/display/component_display.cpp b/comdel/display/component_display.cpp index 33b7cc5..ad2ed10 100644 --- a/comdel/display/component_display.cpp +++ b/comdel/display/component_display.cpp @@ -95,7 +95,7 @@ namespace display { } } } - } else { + } else if(!pinConnections.empty()) { auto pinConnection = pinConnections[0]; if(auto busConnection = dynamic_cast(pinConnection)) { menu.addSection(QString::fromStdString(busConnection->bus->name)); diff --git a/comdel/display/schema_display.cpp b/comdel/display/schema_display.cpp index b49c253..defaa68 100644 --- a/comdel/display/schema_display.cpp +++ b/comdel/display/schema_display.cpp @@ -13,6 +13,8 @@ namespace display { Schema::Schema() { schema = nullptr; library = std::nullopt; + setRenderHint(QPainter::Antialiasing); + setAlignment(Qt::AlignCenter); this->setScene(&scene); this->setAcceptDrops(true); }