Skip to content

Commit

Permalink
[processing] fixes missing icon for create grid algorithm
Browse files Browse the repository at this point in the history
cherry-picked from 5fda402
  • Loading branch information
slarosa committed Mar 7, 2018
1 parent 927c006 commit 33587d7
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions python/plugins/processing/algs/qgis/Grid.py
Expand Up @@ -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,
Expand Down Expand Up @@ -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(',')
Expand Down

0 comments on commit 33587d7

Please sign in to comment.