Skip to content
Permalink
Browse files

Encoded new layer name, to play nice with file system

git-svn-id: http://svn.osgeo.org/qgis/trunk@6314 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
homann
homann committed Dec 26, 2006
1 parent 74f3750 commit 8542692a7b303b63643df86c0c633b1a482020cd
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/providers/ogr/qgsogrprovider.cpp
@@ -1699,7 +1699,7 @@ const std::list<std::pair<QString, QString> >& attributes)
}

OGRLayer* layer;
layer = dataSource->CreateLayer(QFileInfo(uri).baseName(), reference, OGRvectortype, NULL);
layer = dataSource->CreateLayer(QFile::encodeName(QFileInfo(uri).baseName()).constData(), reference, OGRvectortype, NULL);
if(layer == NULL)
{
return false;

0 comments on commit 8542692

Please sign in to comment.
You can’t perform that action at this time.