X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FOBJECT%2FSMESH_PreviewActorsCollection.cxx;h=9fecefb1866a3065443bf54b40f061aaeec9b994;hb=1067ffa6e7e5c394e3a1b17219d8b355a57607cd;hp=b5e145cc5513398218277e5249196c9a52f4e8d9;hpb=e6fb82fec115653b65edff9f5155d4e39bc13c6a;p=modules%2Fsmesh.git diff --git a/src/OBJECT/SMESH_PreviewActorsCollection.cxx b/src/OBJECT/SMESH_PreviewActorsCollection.cxx index b5e145cc5..9fecefb18 100644 --- a/src/OBJECT/SMESH_PreviewActorsCollection.cxx +++ b/src/OBJECT/SMESH_PreviewActorsCollection.cxx @@ -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;