Browse Source

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

v6.1.6
ed 4 years ago
parent
commit
ce72fe4143
1 changed files with 3 additions and 1 deletions
  1. +3
    -1
      modules/juce_gui_basics/widgets/juce_Label.cpp

+ 3
- 1
modules/juce_gui_basics/widgets/juce_Label.cpp 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();


Loading…
Cancel
Save