From: mzn Date: Thu, 26 Dec 2013 10:47:59 +0000 (+0000) Subject: Bug #292: Only 999 profiles are available in Object browser. X-Git-Tag: BR_hydro_v_0_7~41 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=3d08c9f02e44b5c936098687b00584276e917ffd;p=modules%2Fhydro.git Bug #292: Only 999 profiles are available in Object browser. --- diff --git a/src/HYDROData/HYDROData_Tool.cxx b/src/HYDROData/HYDROData_Tool.cxx index ac9045f7..a239b55f 100644 --- a/src/HYDROData/HYDROData_Tool.cxx +++ b/src/HYDROData/HYDROData_Tool.cxx @@ -91,7 +91,8 @@ QString HYDROData_Tool::GenerateObjectName( const Handle(HYDROData_Document)& th aName = thePrefix; } else { int anId = 1; - while( anId < 1000 ) + int aMaxId = std::numeric_limits::max(); + while( anId < aMaxId ) { aName = QString( "%1_%2" ).arg( thePrefix ).arg( QString::number( anId++ ) );