Skip to content
Browse files

[processing] fixed file extension when exporting layer

fixes #15898
  • Loading branch information
volaya committed Nov 27, 2016
1 parent 912a7eb commit 19780c4d479f5bdf7fb04a8b29268fbf9e40d19e
Showing with 2 additions and 1 deletion.
  1. +2 −1 python/plugins/processing/tools/
@@ -308,7 +308,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 19780c4

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