Skip to content

Commit 5d4928f

Browse files
committedJun 22, 2015
[processing] fixed setting rendering styles for line and point outputs
fixes #12773
1 parent 9fc7593 commit 5d4928f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎python/plugins/processing/tools/dataobjects.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -166,9 +166,9 @@ def load(fileName, name=None, crs=None, style=None):
166166
if crs is not None and qgslayer.crs() is None:
167167
qgslayer.setCrs(crs, False)
168168
if style is None:
169-
if qgslayer.geometryType == 0:
169+
if qgslayer.geometryType() == QGis.Point:
170170
style = ProcessingConfig.getSetting(ProcessingConfig.VECTOR_POINT_STYLE)
171-
elif qgslayer.geometryType == 1:
171+
elif qgslayer.geometryType() == QGis.Line:
172172
style = ProcessingConfig.getSetting(ProcessingConfig.VECTOR_LINE_STYLE)
173173
else:
174174
style = ProcessingConfig.getSetting(ProcessingConfig.VECTOR_POLYGON_STYLE)

0 commit comments

Comments
 (0)
Please sign in to comment.