Skip to content

Commit

Permalink
Allow text tool changes to redraw text when state is NotFinalized (#975)
Browse files Browse the repository at this point in the history
Fixes: #952
  • Loading branch information
TheodorLasse authored Sep 13, 2024
1 parent 2e7f110 commit 28ba2da
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Pinta.Tools/Tools/TextTool.cs
Original file line number Diff line number Diff line change
Expand Up @@ -355,8 +355,8 @@ private TextAlignment Alignment {

private void HandlePintaCorePalettePrimaryColorChanged (object? sender, EventArgs e)
{
if (is_editing)
RedrawText (true, true);
if (is_editing || (workspace.HasOpenDocuments && CurrentTextEngine.State == TextMode.NotFinalized))
RedrawText (is_editing, true);
}

private void HandleLeftAlignmentButtonToggled (object? sender, EventArgs e)
Expand Down Expand Up @@ -433,8 +433,8 @@ private void UpdateFont ()
CurrentTextEngine.SetFont (font, Alignment, underscore_btn.Active);
}

if (is_editing)
RedrawText (true, true);
if (is_editing || (workspace.HasOpenDocuments && CurrentTextEngine.State == TextMode.NotFinalized))
RedrawText (is_editing, true);
}

private int OutlineWidth
Expand Down

0 comments on commit 28ba2da

Please sign in to comment.