Merge pull request #2280 from Dogild/RuleEditorDragging

Fixed: crash when dragging the first line of a RuleEditor above the field Any
This commit is contained in:
Antoine Mercadal committed 2014-12-09 19:37:29 -08:00
commit c4fbef2dd3
1 file changed
+1 -1
+1 -1
View File
@@ -2207,7 +2207,7 @@ TODO: implement
indexOfDropLine = FLOOR(y / _sliceHeight),
numberOfRows = [self numberOfRows];
if (indexOfDropLine < 0 || indexOfDropLine > numberOfRows || (indexOfDropLine >= [_draggingRows firstIndex] && indexOfDropLine <= [_draggingRows lastIndex] + 1))
if (indexOfDropLine <= 0 || indexOfDropLine > numberOfRows || (indexOfDropLine >= [_draggingRows firstIndex] && indexOfDropLine <= [_draggingRows lastIndex] + 1))
{
if (_subviewIndexOfDropLine !== CPNotFound && indexOfDropLine !== _subviewIndexOfDropLine)
[self _clearDropLine];