Skip to content

Commit

Permalink
Fixed fritzing#3882 by fixing power label bus removal.
Browse files Browse the repository at this point in the history
  • Loading branch information
KjellMorgenstern committed Sep 22, 2021
1 parent e9bd16d commit f0af53a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/items/symbolpaletteitem.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,11 @@ SymbolPaletteItem::~SymbolPaletteItem() {
void SymbolPaletteItem::removeMeFromBus(double v) {
foreach (ConnectorItem * connectorItem, cachedConnectorItems()) {
if (m_isNetLabel) {
LocalNetLabels.remove(m_label, connectorItem);
if (m_voltageReference) {
LocalNetLabels.remove(getLabel(), connectorItem);
} else {
LocalNetLabels.remove(m_label, connectorItem);
}
}
else {
double nv = useVoltage(connectorItem);
Expand Down

0 comments on commit f0af53a

Please sign in to comment.