Skip to content
Permalink
Browse files

Fix fill and outline color for svg markers sometimes enabled

when SVG file does not support parameters

(Cherry-picked from 3aa6c4f)
  • Loading branch information
nyalldawson committed Nov 18, 2015
1 parent ed2a7b8 commit 1dca76e19f9d9b9ebfe11f106853cd4e00e6973f
Showing with 3 additions and 0 deletions.
  1. +3 −0 src/core/symbology-ng/qgssvgcache.cpp
@@ -227,6 +227,9 @@ QgsSvgCacheEntry* QgsSvgCache::insertSVG( const QString& file, double size, cons
void QgsSvgCache::containsParams( const QString& path, bool& hasFillParam, QColor& defaultFillColor, bool& hasOutlineParam, QColor& defaultOutlineColor,
bool& hasOutlineWidthParam, double& defaultOutlineWidth ) const
{
hasFillParam = false;
hasOutlineParam = false;
hasOutlineWidthParam = false;
defaultFillColor = QColor( Qt::black );
defaultOutlineColor = QColor( Qt::black );
defaultOutlineWidth = 1.0;

0 comments on commit 1dca76e

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