Package: qgis / 2.4.0-1

0001-Fix-10909-SVG-markers-rendered-as-images-in-composer.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
From 9648bc7b946e2ee7ad077c37559df0d97efac169 Mon Sep 17 00:00:00 2001
From: Martin Dobias <wonder.sk@gmail.com>
Date: Mon, 21 Jul 2014 14:11:30 +0200
Subject: Fix #10909 (SVG markers rendered as images in composer)
Origin: https://github.com/qgis/QGIS/commit/9648bc7b946e2ee7ad077c37559df0d97efac169
Bug: http://hub.qgis.org/issues/10909


--- a/src/core/symbology-ng/qgsmarkersymbollayerv2.cpp
+++ b/src/core/symbology-ng/qgsmarkersymbollayerv2.cpp
@@ -1194,7 +1194,6 @@ void QgsSvgMarkerSymbolLayerV2::renderPo
   p->translate( point + outputOffset );
 
   bool rotated = !qgsDoubleNear( angle, 0 );
-  bool drawOnScreen = qgsDoubleNear( context.renderContext().rasterScaleFactor(), 1.0, 0.1 );
   if ( rotated )
     p->rotate( angle );
 
@@ -1230,7 +1229,7 @@ void QgsSvgMarkerSymbolLayerV2::renderPo
   bool fitsInCache = true;
   bool usePict = true;
   double hwRatio = 1.0;
-  if ( drawOnScreen && !rotated )
+  if ( !context.renderContext().forceVectorOutput() && !rotated )
   {
     usePict = false;
     const QImage& img = QgsSvgCache::instance()->svgAsImage( path, size, fillColor, outlineColor, outlineWidth,