Skip to content

Commit 6d4c289

Browse files
author
homann
committed
Encoded new layer name, to play nice with file system
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@6314 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent 7f98c30 commit 6d4c289

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/providers/ogr/qgsogrprovider.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1699,7 +1699,7 @@ const std::list<std::pair<QString, QString> >& attributes)
16991699
}
17001700

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

0 commit comments

Comments
 (0)