From bbc9435c231e87d213b394021b2fe67aabfbc413 Mon Sep 17 00:00:00 2001 From: mkr Date: Tue, 17 Nov 2015 19:36:57 +0300 Subject: [PATCH] refs #712: show warning in GUI, if the number of land covers is not changed after split operation. --- src/HYDROData/HYDROData_LandCoverMap.cxx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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(); } -- 2.39.2