Ver Fonte

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

bank há 11 anos atrás
pai
commit
6275942acb
1 ficheiros alterados com 2 adições e 2 exclusões
  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++) {
          Con::printf("%d", mSelected[j]);
       }
-      S32 mCurrentDragCell = mMouseOverCell.y;
+      mCurrentDragCell = mMouseOverCell.y;
       S32 midpCell = (mCurrentDragCell) * mItemHeight + (mItemHeight/2);
       S32 currentY = pt.y;
       S32 yDiff = currentY-midpCell;
@@ -3648,7 +3648,7 @@ void GuiTreeViewCtrl::onMouseDown(const GuiEvent & event)
                break;
             }
          }
-         S32 mCurrentDragCell = mMouseOverCell.y;
+         mCurrentDragCell = mMouseOverCell.y;
          if (mVisibleItems[firstSelectedIndex] != firstItem )
          {
             /*