summaryrefslogtreecommitdiff
path: root/indra/newview/lltoolselectrect.cpp
diff options
context:
space:
mode:
authorJosh Bell <josh@lindenlab.com>2008-07-22 20:55:02 +0000
committerJosh Bell <josh@lindenlab.com>2008-07-22 20:55:02 +0000
commit35b4a91129bc3da3476e7f9d8d8eb923a621cc3e (patch)
tree2906124fe8371b6336e6f7231cd890d267a75d6d /indra/newview/lltoolselectrect.cpp
parentdf4f20d4f51e41355e876f734527b4245543415c (diff)
svn merge -r92710:92709 svn+ssh://svn.lindenlab.com/svn/linden/release --> release
Undo r92710 (for QAR-698) - went straight into release instead of a side branch for validation.
Diffstat (limited to 'indra/newview/lltoolselectrect.cpp')
-rw-r--r--indra/newview/lltoolselectrect.cpp22
1 files changed, 7 insertions, 15 deletions
diff --git a/indra/newview/lltoolselectrect.cpp b/indra/newview/lltoolselectrect.cpp
index 0d403bbb28..67d9e2da65 100644
--- a/indra/newview/lltoolselectrect.cpp
+++ b/indra/newview/lltoolselectrect.cpp
@@ -78,26 +78,18 @@ void dialog_refresh_all(void);
BOOL LLToolSelectRect::handleMouseDown(S32 x, S32 y, MASK mask)
{
- handlePick(gViewerWindow->pickImmediate(x, y, TRUE));
-
- LLTool::handleMouseDown(x, y, mask);
-
- return mPick.getObject().notNull();
-}
-
-void LLToolSelectRect::handlePick(const LLPickInfo& pick)
-{
- mPick = pick;
-
// start dragging rectangle
setMouseCapture( TRUE );
- mDragStartX = pick.mMousePt.mX;
- mDragStartY = pick.mMousePt.mY;
- mDragEndX = pick.mMousePt.mX;
- mDragEndY = pick.mMousePt.mY;
+ mDragStartX = x;
+ mDragStartY = y;
+ mDragEndX = x;
+ mDragEndY = y;
mMouseOutsideSlop = FALSE;
+
+ LLToolSelect::handleMouseDown(x, y, mask);
+ return TRUE;
}