Browse Source

tags/2021-05-28
jules 18 years ago
parent
commit
0d35c76c12
1 changed files with 1 additions and 3 deletions
  1. +1
    -3
      src/juce_appframework/gui/components/controls/juce_TreeView.cpp

+ 1
- 3
src/juce_appframework/gui/components/controls/juce_TreeView.cpp View File

@@ -278,9 +278,7 @@ private:
swapVariables (rowStart, rowEnd);
int ourRow = item->getRowNumberInTree();
int otherEnd = ourRow < rowEnd ? (ourRow < rowStart ? (rowStart - 1)
: rowStart)
: (rowEnd + 1);
int otherEnd = ourRow < rowEnd ? rowStart : rowEnd;
if (ourRow > otherEnd)
swapVariables (ourRow, otherEnd);


Loading…
Cancel
Save