This website works better with JavaScript.
Home
Help
Sign In
DISTRHO
/
JUCE
mirror of
https://github.com/DISTRHO/JUCE
Watch
1
Star
0
Fork
0
Code
Releases
1
Activity
Browse Source
TreeView: Reset itemUnderMouse when deleting TreeViewItems to avoid dereferencing dangling pointers
v6.1.6
reuk
3 years ago
parent
4f9a9c7bfc
commit
cd34f1b00b
No known key found for this signature in database
GPG Key ID:
9ADCD339CFC98A11
1 changed files
with
3 additions
and
0 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+3
-0
modules/juce_gui_basics/widgets/juce_TreeView.cpp
+ 3
- 0
modules/juce_gui_basics/widgets/juce_TreeView.cpp
View File
@@ -313,6 +313,9 @@ public:
if (iter != itemComponents.end())
{
if (itemUnderMouse == iter->get())
itemUnderMouse = nullptr;
if (isMouseDraggingInChildComp (*(iter->get())))
owner.hideDragHighlight();
Write
Preview
Loading…
Cancel
Save