if (WriteObjectLC(hSHPHandle, aLCSeq(i)) != 1)
aNonExpList.append(aLCSeq(i)->GetName());
}
- SHPClose( hSHPHandle );
-
+ if (hSHPHandle->nRecords > 0)
+ SHPClose( hSHPHandle );
+ else
+ {
+ SHPClose( hSHPHandle );
+ remove (aFileName.toStdString().c_str());
+ }
}
int HYDROData_ShapeFile::WriteObjectPolyXY(SHPHandle theShpHandle, Handle_HYDROData_PolylineXY thePoly )
</message>
<message>
<source>CANNOT_BE_EXPORTED</source>
- <translation>The next entities cannot be exported:</translation>
+ <translation>Following entities cannot be exported:</translation>
</message>
<message>
<source>ERROR_POLYLINES_OF_DIFF_KIND</source>