Navigation Menu

Skip to content

Commit

Permalink
Encoded new layer name, to play nice with file system
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@6314 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
homann committed Dec 26, 2006
1 parent 7f98c30 commit 6d4c289
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 6d4c289

Please sign in to comment.