Browse Source

(fixed a typo in the last commit)

tags/2021-05-28
jules 7 years ago
parent
commit
c6edf39d1d
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      modules/juce_gui_basics/windows/juce_ComponentPeer.cpp

+ 2
- 2
modules/juce_gui_basics/windows/juce_ComponentPeer.cpp View File

@@ -343,7 +343,7 @@ void ComponentPeer::handleFocusGain()
{
ModifierKeys::updateCurrentModifiers();
if (component.isParentOf (lastFocusedComponent))
if (component.isParentOf (lastFocusedComponent)
&& lastFocusedComponent->isShowing()
&& lastFocusedComponent->getWantsKeyboardFocus())
{
@@ -456,7 +456,7 @@ bool ComponentPeer::handleDragMove (const ComponentPeer::DragInfo& info)
ModifierKeys::updateCurrentModifiers();
auto* compUnderMouse = component.getComponentAt (info.position);
auto* lastTarget = dragAndDropTargetComponent;
auto* lastTarget = dragAndDropTargetComponent.get();
Component* newTarget = nullptr;
if (compUnderMouse != lastDragAndDropCompUnderMouse)


Loading…
Cancel
Save