Skip to content

Commit

Permalink
Revert changes to LayerCloned
Browse files Browse the repository at this point in the history
  • Loading branch information
TheodorLasse committed Dec 13, 2024
1 parent c9747d7 commit b1408a2
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions Pinta.Tools/Tools/TextTool.cs
Original file line number Diff line number Diff line change
Expand Up @@ -295,6 +295,14 @@ protected override void OnBuildToolBar (Gtk.Box tb)
outline_width.Visible = outline_width_label.Visible = outline_sep.Visible = StrokeText;

UpdateFont ();

if (workspace.HasOpenDocuments) {
//Make sure the event handler is never added twice.
workspace.ActiveDocument.LayerCloned -= FinalizeText;

//When an ImageSurface is Cloned, finalize the re-editable text (if applicable).
workspace.ActiveDocument.LayerCloned += FinalizeText;
}
}

protected override void OnSaveSettings (ISettingsService settings)
Expand Down

0 comments on commit b1408a2

Please sign in to comment.