Salome HOME
Merge from V6_main 13/12/2012
[modules/smesh.git] / src / OBJECT / SMESH_PreviewActorsCollection.cxx
index b5e145cc5513398218277e5249196c9a52f4e8d9..9fecefb1866a3065443bf54b40f061aaeec9b994 100644 (file)
@@ -77,7 +77,7 @@ bool SMESH_PreviewActorsCollection::Init( const TopoDS_Shape& theShape,
   myMapOfShapes.Clear();
   myIndices.clear();
   myCurrentChunk = 0;
-  myChunkSize = mgr->integerValue( "SMESH", "preview_actor_chunk_size", 100 );
+  myChunkSize = qMax(1, mgr->integerValue( "SMESH", "preview_actor_chunk_size", 100 ) );
 
   if ( theShape.IsNull() )
     return false;