Skip to content
Permalink
Browse files
Prevent crash on export as shapefile if coor transform is uninitialised
git-svn-id: http://svn.osgeo.org/qgis/trunk@9438 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
timlinux committed Oct 6, 2008
1 parent 8113217 commit b4937cb8cae7b1890de5fb29eb1bbd5bf6a0a879
Showing with 1 addition and 5 deletions.
  1. +1 −5 src/core/qgsvectorfilewriter.cpp
@@ -299,7 +299,7 @@ QgsVectorFileWriter::writeAsShapefile( QgsVectorLayer* layer,
{

const QgsCoordinateReferenceSystem* outputCRS;
QgsCoordinateTransform* ct;
QgsCoordinateTransform* ct = 0;

QgsVectorDataProvider* provider = layer->dataProvider();
int shallTransform = false;
@@ -322,10 +322,6 @@ QgsVectorFileWriter::writeAsShapefile( QgsVectorLayer* layer,
WriterError err = writer->hasError();
if ( err != NoError )
{
if ( ct != NULL )
{
delete ct;
}
delete writer;
return err;
}

0 comments on commit b4937cb

Please sign in to comment.