0025284: Problems with standard MFC samples
[occt.git] / samples / mfc / standard / 04_Viewer3d / src / Viewer3dView.cpp
index 548862e..1a019cf 100755 (executable)
@@ -655,8 +655,9 @@ void CViewer3dView::OnMouseMove(UINT nFlags, CPoint point)
         switch (myCurrentMode)
         {
          case CurAction3d_Nothing :
-                  myXmax = point.x;      myYmax = point.y;
+
                   DrawRectangle(myXmin,myYmin,myXmax,myYmax,Standard_False);
+           myXmax = point.x;      myYmax = point.y;
            if (nFlags & MK_SHIFT)              
                     GetDocument()->ShiftDragEvent(myXmax,myYmax,0,myView);
            else