Skip to content
Permalink
Browse files

no OUTLINECOLOR if outlinestyle is None (thanks Michele De Santis)

git-svn-id: http://svn.osgeo.org/qgis/trunk@14547 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
rduivenvoorde
rduivenvoorde committed Nov 11, 2010
1 parent c47217f commit 28605e93589bb89fa44615e308c9a2560d9db606
Showing with 4 additions and 2 deletions.
  1. +4 −2 python/plugins/mapserver_export/ms_export.py
@@ -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"
@@ -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"

0 comments on commit 28605e9

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