From 0d35c76c1218e336ced4a615bd7fb080ef5c105b Mon Sep 17 00:00:00 2001 From: jules Date: Mon, 13 Aug 2007 11:34:57 +0000 Subject: [PATCH] --- .../gui/components/controls/juce_TreeView.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/juce_appframework/gui/components/controls/juce_TreeView.cpp b/src/juce_appframework/gui/components/controls/juce_TreeView.cpp index 7d9e942fb1..7f2aa64738 100644 --- a/src/juce_appframework/gui/components/controls/juce_TreeView.cpp +++ b/src/juce_appframework/gui/components/controls/juce_TreeView.cpp @@ -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);