Skip to content

Commit

Permalink
fix power symbols which were broken by commit fritzing#3845, fixes fr…
Browse files Browse the repository at this point in the history
  • Loading branch information
failiz committed Sep 22, 2021
1 parent 1f0953f commit 23175bf
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/items/symbolpaletteitem.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ SymbolPaletteItem::~SymbolPaletteItem() {
void SymbolPaletteItem::removeMeFromBus(double v) {
foreach (ConnectorItem * connectorItem, cachedConnectorItems()) {
if (m_isNetLabel) {
LocalNetLabels.remove(m_label, connectorItem);
LocalNetLabels.remove(getLabel(), connectorItem);
}
else {
double nv = useVoltage(connectorItem);
Expand Down Expand Up @@ -481,6 +481,8 @@ QString SymbolPaletteItem::getLabel() {
if (m_voltageReference) {
return QString::number(m_voltage);
}
if(!m_label.isEmpty())
return m_label;
return modelPart()->localProp("label").toString();
}

Expand Down

0 comments on commit 23175bf

Please sign in to comment.