Salome HOME
projects
/
modules
/
hydro.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Merge branch 'BR_LAND_COVER_MAP' of ssh://git.salome-platform.org/modules/hydro into...
[modules/hydro.git]
/
src
/
HYDROData
/
HYDROData_LandCoverMap.cxx
diff --git
a/src/HYDROData/HYDROData_LandCoverMap.cxx
b/src/HYDROData/HYDROData_LandCoverMap.cxx
index 3976299fddf3a769e6cef9c1914b846cbbe5a5d4..114fdf86994cb4bd5c73dec9175732b9e93f7ea0 100644
(file)
--- a/
src/HYDROData/HYDROData_LandCoverMap.cxx
+++ b/
src/HYDROData/HYDROData_LandCoverMap.cxx
@@
-577,7
+577,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();
}