Skip to content
Permalink
Browse files

[processing] fixes missing icon for create grid algorithm

  • Loading branch information
slarosa committed Feb 28, 2018
1 parent 020f0eb commit 5fda4025f4f7fb98240efc275c1bce491374dd67
Showing with 3 additions and 2 deletions.
  1. +3 −2 python/plugins/processing/algs/qgis/Grid.py
@@ -30,7 +30,8 @@

from qgis.PyQt.QtGui import QIcon
from qgis.PyQt.QtCore import QVariant
from qgis.core import (QgsField,
from qgis.core import (QgsApplication,
QgsField,
QgsFeatureSink,
QgsFeature,
QgsGeometry,
@@ -63,7 +64,7 @@ class Grid(QgisAlgorithm):
OUTPUT = 'OUTPUT'

def icon(self):
return QIcon(os.path.join(pluginPath, 'images', 'ftools', 'vector_grid.svg'))
return QgsApplication.getThemeIcon("/vector_grid.svg")

def tags(self):
return self.tr('grid,lines,polygons,vector,create,fishnet,diamond,hexagon').split(',')

0 comments on commit 5fda402

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