From: mkr Date: Tue, 17 Nov 2015 16:36:57 +0000 (+0300) Subject: refs #712: show warning in GUI, if the number of land covers is not changed after... X-Git-Tag: v1.5~26^2 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=bbc9435c231e87d213b394021b2fe67aabfbc413;p=modules%2Fhydro.git refs #712: show warning in GUI, if the number of land covers is not changed after split operation. --- diff --git a/src/HYDROData/HYDROData_LandCoverMap.cxx b/src/HYDROData/HYDROData_LandCoverMap.cxx index 1187916c..74775ac9 100644 --- a/src/HYDROData/HYDROData_LandCoverMap.cxx +++ b/src/HYDROData/HYDROData_LandCoverMap.cxx @@ -573,7 +573,9 @@ bool HYDROData_LandCoverMap::Split( const Handle( HYDROData_PolylineXY )& thePol */ bool HYDROData_LandCoverMap::Split( const TopoDS_Shape& theShape ) { - return LocalPartition( theShape, "" ); + int aNbCL = GetLCCount(); + bool aResult = LocalPartition( theShape, "" ); + return aResult && aNbCL != GetLCCount(); }