]> SALOME platform Git repositories - modules/hydro.git/commitdiff
Salome HOME
Bug #292: Only 999 profiles are available in Object browser.
authormzn <mzn@opencascade.com>
Thu, 26 Dec 2013 10:47:59 +0000 (10:47 +0000)
committermzn <mzn@opencascade.com>
Thu, 26 Dec 2013 10:47:59 +0000 (10:47 +0000)
src/HYDROData/HYDROData_Tool.cxx

index ac9045f7698178c401defe6a3e73c454de4d883a..a239b55f0592e5132c73faa1eb8ad7630eae5859 100644 (file)
@@ -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<int>::max();
+    while( anId < aMaxId )
     {
       aName = QString( "%1_%2" ).arg( thePrefix ).arg( QString::number( anId++ ) );