1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-08-04 13:13:25 +03:00

Update of MFC samples for problem "Mouse selection issue is repeatable on all your application"

This commit is contained in:
bugmaster
2011-04-20 14:01:48 +00:00
committed by bugmaster
parent 7fd59977df
commit 62a0addbcc
3 changed files with 18 additions and 12 deletions

View File

@@ -82,9 +82,10 @@ void OCC_3dBaseDoc::DragEvent(const Standard_Integer x ,
theButtonDownX=x;
theButtonDownY=y;
}
if (TheState == 0)
myAISContext->Select(theButtonDownX,theButtonDownY,x,y,aView);
if (TheState == 1)
{
myAISContext->Select(theButtonDownX,theButtonDownY,x,y,aView);
}
}
//-----------------------------------------------------------------------------------------
@@ -94,7 +95,7 @@ void OCC_3dBaseDoc::InputEvent(const Standard_Integer x ,
const Standard_Integer y ,
const Handle(V3d_View)& aView )
{
myAISContext->Select();
myAISContext->Select();
}
//-----------------------------------------------------------------------------------------