Skip to content

Commit

Permalink
Solved issue fritzing#4046 by adding logo text setting to undo chain.
Browse files Browse the repository at this point in the history
  • Loading branch information
Kjell Morgenstern authored and KjellMorgenstern committed Dec 12, 2023
1 parent 33707bf commit 45c9b47
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/sketch/sketchwidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -376,6 +376,10 @@ void SketchWidget::loadFromModelParts(QList<ModelPart *> & modelParts, BaseComma
new ResizeBoardCommand(this, newID, *w, *h, *w, *h, parentCommand);
}
}
if (mp->itemType() == ModelPart::Logo) {
auto * cmd = new SetPropCommand(this, newID, "logo", "logo", mp->localProp("logo").toString(), true, parentCommand);
cmd->setText(tr("Change %1 from %2 to %3").arg("logo").arg("logo").arg(mp->localProp("logo").toString()));
}
}
else if (mp->itemType() == ModelPart::Note) {
new ChangeNoteTextCommand(this, newID, mp->instanceText(), mp->instanceText(), viewGeometry.rect().size(), viewGeometry.rect().size(), parentCommand);
Expand Down

0 comments on commit 45c9b47

Please sign in to comment.