Skip to content
Permalink
Browse files

[processing] fixed setting rendering styles for line and point outputs

fixes #12773
  • Loading branch information
volaya committed Jun 22, 2015
1 parent 9fc7593 commit 5d4928fae2969f9a212e70dcd2adf2d9fd213369
Showing with 2 additions and 2 deletions.
  1. +2 −2 python/plugins/processing/tools/dataobjects.py
@@ -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)

0 comments on commit 5d4928f

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