Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[processing] fixed wrong call to splitext in dataobjects.py
(cherry picked from commit 479ceb3)

Conflicts:
	python/plugins/processing/tools/dataobjects.py
  • Loading branch information
volaya authored and alexbruy committed Jul 22, 2016
1 parent ca96702 commit 792cbb2
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions python/plugins/processing/tools/dataobjects.py
Expand Up @@ -28,7 +28,8 @@

import os
import re
from qgis.core import QGis, QgsProject, QgsVectorFileWriter, QgsMapLayer, QgsRasterLayer, QgsVectorLayer, QgsMapLayerRegistry, QgsCoordinateReferenceSystem
from qgis.core import QGis, QgsProject, QgsVectorFileWriter, QgsMapLayer, QgsRasterLayer, \
QgsVectorLayer, QgsMapLayerRegistry, QgsCoordinateReferenceSystem
from qgis.gui import QgsSublayersDialog
from PyQt4.QtCore import QSettings
from qgis.utils import iface
Expand Down Expand Up @@ -318,7 +319,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(layer.source())[1].lower() in supported or not isASCII:
writer = QgsVectorFileWriter(
output, systemEncoding,
layer.pendingFields(), provider.geometryType(),
Expand Down

0 comments on commit 792cbb2

Please sign in to comment.