From: mzn Date: Mon, 28 Feb 2005 13:13:34 +0000 (+0000) Subject: Fix for PAL8309(now, if the ctrl key is pressed, the input coordinates function(by... X-Git-Tag: T3_0_0_a1~26 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=44c126ac12f74dd036aa5cad2183d981704ddf5c;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() )