mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-18 00:54:19 +00:00
A couple of minor fixes, and changed code to use std::swap instead of swapVariables()
This commit is contained in:
parent
1fb8929c55
commit
904e1aba45
27 changed files with 65 additions and 61 deletions
|
|
@ -363,13 +363,13 @@ private:
|
|||
int rowStart = firstSelected->getRowNumberInTree();
|
||||
int rowEnd = lastSelected->getRowNumberInTree();
|
||||
if (rowStart > rowEnd)
|
||||
swapVariables (rowStart, rowEnd);
|
||||
std::swap (rowStart, rowEnd);
|
||||
|
||||
int ourRow = item->getRowNumberInTree();
|
||||
int otherEnd = ourRow < rowEnd ? rowStart : rowEnd;
|
||||
|
||||
if (ourRow > otherEnd)
|
||||
swapVariables (ourRow, otherEnd);
|
||||
std::swap (ourRow, otherEnd);
|
||||
|
||||
for (int i = ourRow; i <= otherEnd; ++i)
|
||||
owner.getItemOnRow (i)->setSelected (true, false);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue