Skip to content
Permalink
Browse files

[processing] fixed repaint in set vector style algorithm

  • Loading branch information
volaya committed May 18, 2016
1 parent bbaef37 commit f001ac11f73f98cddcb9fb608cede2d222bea5d9
Showing with 2 additions and 2 deletions.
  1. +2 −2 python/plugins/processing/algs/qgis/SetVectorStyle.py
@@ -41,7 +41,7 @@ class SetVectorStyle(GeoAlgorithm):
OUTPUT = 'OUTPUT'

def defineCharacteristics(self):
#self.allowOnlyOpenedLayers = True
# self.allowOnlyOpenedLayers = True
self.name, self.i18n_name = self.trAlgorithm('Set style for vector layer')
self.group, self.i18n_group = self.trAlgorithm('Vector general tools')
self.addParameter(ParameterVector(self.INPUT,
@@ -52,7 +52,6 @@ def defineCharacteristics(self):

def processAlgorithm(self, progress):
filename = self.getParameterValue(self.INPUT)
layer = dataobjects.getObjectFromUri(filename)

style = self.getParameterValue(self.STYLE)
layer = dataobjects.getObjectFromUri(filename, False)
@@ -63,3 +62,4 @@ def processAlgorithm(self, progress):
layer.loadNamedStyle(style)
iface.mapCanvas().refresh()
iface.legendInterface().refreshLayerSymbology(layer)
layer.triggerRepaint()

0 comments on commit f001ac1

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