From: mzn Date: Mon, 28 Feb 2005 13:15:14 +0000 (+0000) Subject: Fix for PAL8309(now, if the ctrl key is pressed, the input coordinates function(by... X-Git-Tag: V2_2_1rc~2 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=3f55813c94018bb003b1ff219a0088dbbaded748;p=modules%2Fgeom.git Fix for PAL8309(now, if the ctrl key is pressed, the input coordinates function(by mouse clicking in the viewer) should be disabled in the "Point Construction" dialog). --- diff --git a/src/BasicGUI/BasicGUI.cxx b/src/BasicGUI/BasicGUI.cxx index 9398230f3..b01d6c7ae 100644 --- a/src/BasicGUI/BasicGUI.cxx +++ b/src/BasicGUI/BasicGUI.cxx @@ -162,7 +162,7 @@ bool BasicGUI::OnMousePress( QMouseEvent* pe, QAD_Desktop* parent, QAD_StudyFram QDialog* aDlg = GeometryGUI::GetGeomGUI()->GetActiveDialogBox(); // Create Point dialog, OCC viewer - if ( aDlg && aDlg->isA( "BasicGUI_PointDlg" ) && theFrame->getTypeView() == VIEW_OCC ) + if ( aDlg && aDlg->isA( "BasicGUI_PointDlg" ) && theFrame->getTypeView() == VIEW_OCC && pe->state() != Qt::ControlButton ) { BasicGUI_PointDlg* aPntDlg = (BasicGUI_PointDlg*) aDlg; if ( aPntDlg->acceptMouseEvent() )