[Processing] Compare lower file extension to "shp"

This commit is contained in:
arnaud.morvan@camptocamp.com 2016-05-28 16:38:08 +02:00 committed by Alexander Bruy
parent 2cf224cacf
commit 01450c5609

View File

@ -318,7 +318,7 @@ def exportVectorLayer(layer, supported=None):
unicode(layer.source()).decode('ascii')
except UnicodeEncodeError:
isASCII = False
if not os.path.splitext()[1] in supported or not isASCII:
if not os.path.splitext()[1].lower() in supported or not isASCII:
writer = QgsVectorFileWriter(
output, systemEncoding,
layer.pendingFields(), provider.geometryType(),