Browse Source

Fix GuiTreeViewCtrl: we should use the member var, removed local decl.

bank 11 years ago
parent
commit
6275942acb
1 changed files with 2 additions and 2 deletions
  1. 2 2
      Engine/source/gui/controls/guiTreeViewCtrl.cpp

+ 2 - 2
Engine/source/gui/controls/guiTreeViewCtrl.cpp

@@ -3583,7 +3583,7 @@ void GuiTreeViewCtrl::onMiddleMouseDown(const GuiEvent & event)
       for (S32 j = 0; j < mSelected.size(); j++) {
       for (S32 j = 0; j < mSelected.size(); j++) {
          Con::printf("%d", mSelected[j]);
          Con::printf("%d", mSelected[j]);
       }
       }
-      S32 mCurrentDragCell = mMouseOverCell.y;
+      mCurrentDragCell = mMouseOverCell.y;
       S32 midpCell = (mCurrentDragCell) * mItemHeight + (mItemHeight/2);
       S32 midpCell = (mCurrentDragCell) * mItemHeight + (mItemHeight/2);
       S32 currentY = pt.y;
       S32 currentY = pt.y;
       S32 yDiff = currentY-midpCell;
       S32 yDiff = currentY-midpCell;
@@ -3648,7 +3648,7 @@ void GuiTreeViewCtrl::onMouseDown(const GuiEvent & event)
                break;
                break;
             }
             }
          }
          }
-         S32 mCurrentDragCell = mMouseOverCell.y;
+         mCurrentDragCell = mMouseOverCell.y;
          if (mVisibleItems[firstSelectedIndex] != firstItem )
          if (mVisibleItems[firstSelectedIndex] != firstItem )
          {
          {
             /*
             /*