From 1c803cac6163348ba26240134dbff33bfdd6cfcb Mon Sep 17 00:00:00 2001 From: cconopoima Date: Wed, 29 May 2024 13:44:02 +0100 Subject: [PATCH] [bos #41978][EDF] Edit table of density on wire discretization. Load properly the first Value of the entry on edit submesh. --- src/StdMeshersGUI/StdMeshersGUI_DistrTable.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 ) )