File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -151,10 +151,10 @@ void QgsDecorationGrid::projectRead()
151
151
}
152
152
if ( ! mMarkerSymbol )
153
153
{
154
- // set default symbol : cross with width=20
154
+ // set default symbol : cross with width=3
155
155
QgsSymbolLayerV2List symbolList;
156
156
symbolList << new QgsSimpleMarkerSymbolLayerV2 ( " cross" , DEFAULT_SIMPLEMARKER_COLOR,
157
- DEFAULT_SIMPLEMARKER_BORDERCOLOR, 20 , 0 );
157
+ DEFAULT_SIMPLEMARKER_BORDERCOLOR, 3 , 0 );
158
158
mMarkerSymbol = new QgsMarkerSymbolV2 ( symbolList );
159
159
// mMarkerSymbol = new QgsMarkerSymbolV2();
160
160
}
@@ -233,7 +233,7 @@ void QgsDecorationGrid::render( QPainter * p )
233
233
if ( ! mLineSymbol )
234
234
return ;
235
235
236
- QgsRenderContext context;
236
+ QgsRenderContext context = QgsRenderContext::fromMapSettings ( QgisApp::instance ()-> mapCanvas ()-> mapSettings () ) ;
237
237
context.setPainter ( p );
238
238
mLineSymbol ->startRender ( context, 0 );
239
239
@@ -311,7 +311,7 @@ void QgsDecorationGrid::render( QPainter * p )
311
311
if ( ! mMarkerSymbol )
312
312
return ;
313
313
314
- QgsRenderContext context;
314
+ QgsRenderContext context = QgsRenderContext::fromMapSettings ( QgisApp::instance ()-> mapCanvas ()-> mapSettings () ) ;
315
315
context.setPainter ( p );
316
316
mMarkerSymbol ->startRender ( context, 0 );
317
317
You can’t perform that action at this time.
0 commit comments