From: cconopoima Date: Wed, 29 May 2024 12:44:02 +0000 (+0100) Subject: [bos #41978][EDF] Edit table of density on wire discretization. Load properly the... X-Git-Tag: V9_13_0a1~3 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=refs%2Fheads%2Fcce%2F41978;p=modules%2Fsmesh.git [bos #41978][EDF] Edit table of density on wire discretization. Load properly the first Value of the entry on edit submesh. --- diff --git a/src/StdMeshersGUI/StdMeshersGUI_DistrTable.cxx b/src/StdMeshersGUI/StdMeshersGUI_DistrTable.cxx index 1380b981c..64b48b6d4 100644 --- a/src/StdMeshersGUI/StdMeshersGUI_DistrTable.cxx +++ b/src/StdMeshersGUI/StdMeshersGUI_DistrTable.cxx @@ -316,9 +316,9 @@ setValue( int r, int c, double v ) v = funcMinimum( r ); // correct func value according to the valid min value if ( c == FuncColumn && v > funcMaximum( r ) ) v = funcMaximum( r ); // correct func value according to the valid max value - else if ( r == ArgColumn && v < argMinimum( r ) ) + else if ( c != FuncColumn && r == ArgColumn && v < argMinimum( r ) ) v = argMinimum( r ); // correct arg value according to the valid min value - else if ( r == ArgColumn && v > argMaximum( r ) ) + else if ( c != FuncColumn && r == ArgColumn && v > argMaximum( r ) ) v = argMaximum( r ); // correct arg value according to the valid max value if ( !item( r, c ) )