1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00

Label: Check for deletion before calling repaint() in hideEditor()

This commit is contained in:
ed 2021-05-26 14:51:45 +01:00
parent 6b29a6d8ff
commit ce72fe4143

View file

@ -282,7 +282,9 @@ void Label::hideEditor (bool discardCurrentEditorContents)
const bool changed = (! discardCurrentEditorContents)
&& updateFromTextEditorContents (*outgoingEditor);
outgoingEditor.reset();
repaint();
if (deletionChecker != nullptr)
repaint();
if (changed)
textWasEdited();