Skip to content

Commit

Permalink
[processing] fixed setting rendering styles for line and point outputs
Browse files Browse the repository at this point in the history
fixes #12773
  • Loading branch information
volaya committed Jun 22, 2015
1 parent 9fc7593 commit 5d4928f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python/plugins/processing/tools/dataobjects.py
Expand Up @@ -166,9 +166,9 @@ def load(fileName, name=None, crs=None, style=None):
if crs is not None and qgslayer.crs() is None:
qgslayer.setCrs(crs, False)
if style is None:
if qgslayer.geometryType == 0:
if qgslayer.geometryType() == QGis.Point:
style = ProcessingConfig.getSetting(ProcessingConfig.VECTOR_POINT_STYLE)
elif qgslayer.geometryType == 1:
elif qgslayer.geometryType() == QGis.Line:
style = ProcessingConfig.getSetting(ProcessingConfig.VECTOR_LINE_STYLE)
else:
style = ProcessingConfig.getSetting(ProcessingConfig.VECTOR_POLYGON_STYLE)
Expand Down

0 comments on commit 5d4928f

Please sign in to comment.