mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-15 08:34:40 +00:00
Fix GuiTreeViewCtrl: we should use the member var, removed local decl.
This commit is contained in:
parent
6d176cf8db
commit
6275942acb
1 changed files with 2 additions and 2 deletions
|
|
@ -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 )
|
||||||
{
|
{
|
||||||
/*
|
/*
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue