Skip to content

Commit

Permalink
Merge pull request #11242 from ronso0/effect-param-swap-noop
Browse files Browse the repository at this point in the history
EffectSlot::swapParameters: ignore no-op, e.g. after aborted drag (drop on itself)
  • Loading branch information
daschuer authored Feb 3, 2023
2 parents 4cb5d94 + f67662a commit 3f6876f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/effects/effectslot.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -463,6 +463,9 @@ void EffectSlot::showParameter(EffectParameterPointer pParameter) {
}

void EffectSlot::swapParameters(EffectParameterType type, int index1, int index2) {
if (index1 == index2) {
return;
}
VERIFY_OR_DEBUG_ASSERT(m_loadedParameters[type].size() > index1) {
return;
}
Expand Down

0 comments on commit 3f6876f

Please sign in to comment.