Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
no OUTLINECOLOR if outlinestyle is None (thanks Michele De Santis)
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@14547 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
rduivenvoorde committed Nov 11, 2010
1 parent 76a9bbc commit 445f405
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions python/plugins/mapserver_export/ms_export.py
Expand Up @@ -748,9 +748,10 @@ def getSymbolProperty(self, symbolNode, elementName):

def writeClassStyleContent(self, symbolNode, geometry):
outlinecolor = self.getRgbFromNode(symbolNode, 'outlinecolor')
outlinestyle = self.getSymbolProperty(symbolNode, 'outlinestyle')
outlinewidth = self.getSizeStringFromNode(symbolNode, 'outlinewidth')
fillcolor = self.getRgbFromNode(symbolNode, 'fillcolor')
pointsize = self.getSizeStringFromNode(symbolNode, 'pointsize')
outlinewidth = self.getSizeStringFromNode(symbolNode, 'outlinewidth')
fillpattern = self.getSymbolProperty(symbolNode, 'fillpattern');

class_def = " STYLE\n"
Expand All @@ -769,7 +770,8 @@ def writeClassStyleContent(self, symbolNode, geometry):
class_def += " COLOR " + outlinecolor + "\n"
# for POLYGON and POINT defined by COLOR from fillcolor and OUTLINECOLOR from outlinecolor
else:
class_def += " OUTLINECOLOR " + outlinecolor + "\n"
if 'NoPen' != outlinestyle:
class_def += " OUTLINECOLOR " + outlinecolor + "\n"
if 'NoBrush' != fillpattern:
class_def += " COLOR " + fillcolor + "\n"

Expand Down

0 comments on commit 445f405

Please sign in to comment.