Fix crash when reordering effects

file-open
James Ball 2024-04-13 16:58:31 +01:00 zatwierdzone przez James H Ball
rodzic 09d9b32882
commit e7479ac2f4
2 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -74,6 +74,7 @@ void DraggableListBoxItem::itemDragExit(const SourceDetails& /*dragSourceDetails
void DraggableListBoxItem::itemDropped(const juce::DragAndDropTarget::SourceDetails &dragSourceDetails)
{
hideInsertLines();
if (DraggableListBoxItem* item = dynamic_cast<DraggableListBoxItem*>(dragSourceDetails.sourceComponent.get()))
{
if (dragSourceDetails.localPosition.y < getHeight() / 2)
@ -82,7 +83,6 @@ void DraggableListBoxItem::itemDropped(const juce::DragAndDropTarget::SourceDeta
modelData.moveAfter(item->rowNum, rowNum);
listBox.updateContent();
}
hideInsertLines();
}
juce::Component* DraggableListBoxModel::refreshComponentForRow(int rowNumber, bool isRowSelected, juce::Component *existingComponentToUpdate)

Wyświetl plik

@ -637,7 +637,7 @@
bigIcon="pSc1mq" applicationCategory="public.app-category.music">
<CONFIGURATIONS>
<CONFIGURATION isDebug="1" name="Debug" targetName="osci-render"/>
<CONFIGURATION isDebug="0" name="Release" targetName="osci-render"/>
<CONFIGURATION isDebug="1" name="Release" targetName="osci-render"/>
</CONFIGURATIONS>
<MODULEPATHS>
<MODULEPATH id="juce_audio_basics" path="../../../JUCE/modules"/>