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

(Cherry-picked from 3aa6c4f)
  • Loading branch information
nyalldawson committed Nov 18, 2015
1 parent ed2a7b8 commit 1dca76e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/core/symbology-ng/qgssvgcache.cpp
Original file line number Diff line number Diff line change
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 = 1.0;
Expand Down

0 comments on commit 1dca76e

Please sign in to comment.