File tree 2 files changed +16
-2
lines changed
2 files changed +16
-2
lines changed Original file line number Diff line number Diff line change @@ -52,6 +52,14 @@ void QgsSimpleFillSymbolLayerV2::startRender( QgsSymbolV2RenderContext& context
52
52
{
53
53
mColor .setAlphaF ( context.alpha () );
54
54
mBrush = QBrush ( mColor , mBrushStyle );
55
+
56
+ // scale brush content for printout
57
+ double rasterScaleFactor = context.renderContext ().rasterScaleFactor ();
58
+ if ( rasterScaleFactor != 1.0 )
59
+ {
60
+ mBrush .setMatrix ( QMatrix ().scale ( 1.0 / rasterScaleFactor, 1.0 / rasterScaleFactor ) );
61
+ }
62
+
55
63
QColor selColor = context.selectionColor ();
56
64
// selColor.setAlphaF( context.alpha() );
57
65
mSelBrush = QBrush ( selColor );
Original file line number Diff line number Diff line change @@ -7,8 +7,11 @@ SET (util_SRCS qgsrenderchecker.cpp)
7
7
# the UI file won't be wrapped!
8
8
INCLUDE_DIRECTORIES (${CMAKE_CURRENT_SOURCE_DIR}
9
9
${CMAKE_CURRENT_BINARY_DIR}
10
- ${CMAKE_CURRENT_SOURCE_DIR} /../../../src/core
11
- ${CMAKE_CURRENT_SOURCE_DIR} /../../../src/core/raster
10
+ ${CMAKE_SOURCE_DIR} /src/core
11
+ ${CMAKE_SOURCE_DIR} /src/core/raster
12
+ ${CMAKE_SOURCE_DIR} /src/core/renderer
13
+ ${CMAKE_SOURCE_DIR} /src/core/symbology
14
+ ${CMAKE_SOURCE_DIR} /src/core/symbology-ng
12
15
${QT_INCLUDE_DIR}
13
16
${GDAL_INCLUDE_DIR}
14
17
${PROJ_INCLUDE_DIR}
@@ -113,3 +116,6 @@ ADD_QGIS_TEST(geometrytest testqgsgeometry.cpp)
113
116
ADD_QGIS_TEST(coordinatereferencesystemtest testqgscoordinatereferencesystem.cpp)
114
117
ADD_QGIS_TEST(pointtest testqgspoint.cpp)
115
118
ADD_QGIS_TEST(searchstringtest testqgssearchstring.cpp)
119
+
120
+ ADD_QGIS_TEST(renderingbenchmark rendering_benchmark.cpp)
121
+
You can’t perform that action at this time.
0 commit comments