Skip to content

Commit 1dca76e

Browse files
committedNov 18, 2015
Fix fill and outline color for svg markers sometimes enabled
when SVG file does not support parameters (Cherry-picked from 3aa6c4f)
1 parent ed2a7b8 commit 1dca76e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed
 

‎src/core/symbology-ng/qgssvgcache.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -227,6 +227,9 @@ QgsSvgCacheEntry* QgsSvgCache::insertSVG( const QString& file, double size, cons
227227
void QgsSvgCache::containsParams( const QString& path, bool& hasFillParam, QColor& defaultFillColor, bool& hasOutlineParam, QColor& defaultOutlineColor,
228228
bool& hasOutlineWidthParam, double& defaultOutlineWidth ) const
229229
{
230+
hasFillParam = false;
231+
hasOutlineParam = false;
232+
hasOutlineWidthParam = false;
230233
defaultFillColor = QColor( Qt::black );
231234
defaultOutlineColor = QColor( Qt::black );
232235
defaultOutlineWidth = 1.0;

0 commit comments

Comments
 (0)
Please sign in to comment.