]> SALOME platform Git repositories - modules/hydro.git/commitdiff
Salome HOME
refs #712: show warning in GUI, if the number of land covers is not changed after...
authormkr <mkr@opencascade.com>
Tue, 17 Nov 2015 16:36:57 +0000 (19:36 +0300)
committermkr <mkr@opencascade.com>
Tue, 17 Nov 2015 16:36:57 +0000 (19:36 +0300)
src/HYDROData/HYDROData_LandCoverMap.cxx

index 1187916c6dbf3742c3dd1183261a87c6154a517d..74775ac9563b8705686ddcaa7a4d864dd31258ab 100644 (file)
@@ -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();
 }