Browse Source

Introjucer: dragging exporter treeview fix. Audio plugin demo algorithm fix.

tags/2021-05-28
jules 13 years ago
parent
commit
9afac59a60
3 changed files with 3 additions and 3 deletions
  1. +1
    -1
      extras/Introjucer/Source/Project/jucer_ConfigPage.cpp
  2. +1
    -1
      extras/audio plugin demo/Source/PluginProcessor.cpp
  3. +1
    -1
      modules/juce_gui_basics/windows/juce_TooltipWindow.cpp

+ 1
- 1
extras/Introjucer/Source/Project/jucer_ConfigPage.cpp View File

@@ -396,7 +396,7 @@ namespace ProjectSettingsTreeClasses
void itemDropped (const DragAndDropTarget::SourceDetails& dragSourceDetails, int insertIndex)
{
int oldIndex = dragSourceDetails.description.toString().getTrailingIntValue();
exportersTree.moveChild (oldIndex, insertIndex, project.getUndoManagerFor (exportersTree));
exportersTree.moveChild (oldIndex, jmax (0, insertIndex - 1), project.getUndoManagerFor (exportersTree));
}
//==============================================================================


+ 1
- 1
extras/audio plugin demo/Source/PluginProcessor.cpp View File

@@ -257,7 +257,7 @@ void JuceDemoPluginAudioProcessor::processBlock (AudioSampleBuffer& buffer, Midi
const float in = channelData[i];
channelData[i] += delayData[dp];
delayData[dp] = (delayData[dp] + in) * delay;
if (++dp > delayBuffer.getNumSamples())
if (++dp >= delayBuffer.getNumSamples())
dp = 0;
}
}


+ 1
- 1
modules/juce_gui_basics/windows/juce_TooltipWindow.cpp View File

@@ -118,7 +118,7 @@ String TooltipWindow::getTipFor (Component* const c)
{
if (c != nullptr
&& Process::isForegroundProcess()
&& ! Component::isMouseButtonDownAnywhere())
&& ! ModifierKeys::getCurrentModifiers().isAnyMouseButtonDown())
{
TooltipClient* const ttc = dynamic_cast <TooltipClient*> (c);


Loading…
Cancel
Save