Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
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 committed Dec 26, 2006
1 parent 74f3750 commit 8542692
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/providers/ogr/qgsogrprovider.cpp
Expand Up @@ -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;
Expand Down

0 comments on commit 8542692

Please sign in to comment.