gearmulator

Emulation of classic VA synths of the late 90s/2000s that are based on Motorola 56300 family DSPs
Log | Files | Refs | Submodules | README | LICENSE

commit ccaca06686ae6a30b7d148907865fa24e23d4d19
parent abd47274f94caddeff37033a4fd2cb8618f71a5e
Author: dsp56300 <dsp56300@users.noreply.github.com>
Date:   Sun, 29 Sep 2024 01:03:04 +0200

prevent item to be a drag target if the id is not valid

Diffstat:
Msource/xtJucePlugin/weData.cpp | 4++++
1 file changed, 4 insertions(+), 0 deletions(-)

diff --git a/source/xtJucePlugin/weData.cpp b/source/xtJucePlugin/weData.cpp @@ -265,11 +265,15 @@ namespace xtJucePlugin bool WaveEditorData::isReadOnly(const xt::TableId _table) { + if(!_table.isValid()) + return true; return _table.rawId() < xt::Wave::g_firstRamTableIndex; } bool WaveEditorData::isReadOnly(const xt::WaveId _waveId) { + if(!_waveId.isValid()) + return true; return _waveId.rawId() < xt::Wave::g_firstRamWaveIndex; } }