From 5d4928fae2969f9a212e70dcd2adf2d9fd213369 Mon Sep 17 00:00:00 2001 From: volaya Date: Mon, 22 Jun 2015 11:37:52 +0200 Subject: [PATCH] [processing] fixed setting rendering styles for line and point outputs fixes #12773 --- python/plugins/processing/tools/dataobjects.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/python/plugins/processing/tools/dataobjects.py b/python/plugins/processing/tools/dataobjects.py index 496b5814fb0..516129d95f8 100644 --- a/python/plugins/processing/tools/dataobjects.py +++ b/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)