Salome HOME
projects
/
modules
/
hydro.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
b686c53
)
refs #762
author
isn
<isn@opencascade.com>
Fri, 27 Nov 2015 12:34:35 +0000
(15:34 +0300)
committer
isn
<isn@opencascade.com>
Fri, 27 Nov 2015 12:34:35 +0000
(15:34 +0300)
src/HYDROData/HYDROData_ShapeFile.cxx
patch
|
blob
|
history
diff --git
a/src/HYDROData/HYDROData_ShapeFile.cxx
b/src/HYDROData/HYDROData_ShapeFile.cxx
index 559fd73982ca28a9fc473d3fac80e5647dc0269a..93a75c2a4c212add5c924eefde6668f961afcd02 100644
(file)
--- a/
src/HYDROData/HYDROData_ShapeFile.cxx
+++ b/
src/HYDROData/HYDROData_ShapeFile.cxx
@@
-115,7
+115,7
@@
void HYDROData_ShapeFile::Export(const QString& aFileName, const Handle_HYDRODat
if (bCheckLinear && !aLCM->CheckLinear())
return;
//
- SHPHandle hSHPHandle;
+ SHPHandle hSHPHandle
= NULL
;
if ( !aLCM.IsNull() && !aLCM->IsEmpty())
{
hSHPHandle = SHPCreate( aFileName.toAscii().data(), SHPT_POLYGON );
@@
-127,7
+127,7
@@
void HYDROData_ShapeFile::Export(const QString& aFileName, const Handle_HYDRODat
aNonExpList.append(aLCM->GetName() + "_" + QString::number(It.Index()));
}
}
- if (hSHPHandle->nRecords > 0)
+ if (hSHPHandle
&& hSHPHandle
->nRecords > 0)
SHPClose( hSHPHandle );
else
{