Skip to content

Commit

Permalink
Fix fill and outline color for svg markers sometimes enabled
Browse files Browse the repository at this point in the history
when SVG file does not support parameters
  • Loading branch information
nyalldawson committed Oct 11, 2015
1 parent 9287ee7 commit 3aa6c4f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/core/symbology-ng/qgssvgcache.cpp
Expand Up @@ -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 = 0.2;
Expand Down

0 comments on commit 3aa6c4f

Please sign in to comment.