]> SALOME platform Git repositories - modules/hydro.git/commitdiff
Salome HOME
Checking of correctnes of input point corrected (Bug #133).
authoradv <adv@opencascade.com>
Wed, 27 Nov 2013 11:30:15 +0000 (11:30 +0000)
committeradv <adv@opencascade.com>
Wed, 27 Nov 2013 11:30:15 +0000 (11:30 +0000)
src/HYDROGUI/HYDROGUI_ImportImageOp.cxx

index 4f7afb9b2e0fd6009a2a7324a80ca2da9c650e57..54a3095cdfe6724b6774977a0b80fd76df1cca7f 100644 (file)
@@ -314,7 +314,7 @@ bool HYDROGUI_ImportImageOp::checkPoints( const QPointF& thePointA,
   else 
   {
     // check that two points are not identical
-    if ( ValuesEquals( xa, ya ) && ValuesEquals( xb, yb ) )
+    if ( ValuesEquals( xa, xb ) && ValuesEquals( ya, yb ) )
     {
       theErrorMsg = thePoinErrMsg;
       return false;