Skip to content
Browse files

[processing] fixed file extension when exporting layer

fixes #15898
  • Loading branch information
volaya committed Nov 27, 2016
1 parent 739e2aa commit 7613c296b925fe0a899c145e6ab459c92b99fcea
Showing with 2 additions and 1 deletion.
  1. +2 −1 python/plugins/processing/tools/
@@ -309,7 +309,8 @@ def exportVectorLayer(layer, supported=None):
except UnicodeEncodeError:
isASCII = False
if not os.path.splitext(layer.source())[1].lower() in supported or not isASCII:
ext = os.path.splitext(layer.source())[-1].lower()[1:]
if ext not in supported or not isASCII:
writer = QgsVectorFileWriter(
output, systemEncoding,
layer.pendingFields(), provider.geometryType(),

0 comments on commit 7613c29

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