Skip to content

Commit 1c3b5e4

Browse files
committedApr 1, 2014
Decoration grid: fix symbol sizes + default cross size
1 parent 1b4c8b6 commit 1c3b5e4

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed
 

‎src/app/qgsdecorationgrid.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -151,10 +151,10 @@ void QgsDecorationGrid::projectRead()
151151
}
152152
if ( ! mMarkerSymbol )
153153
{
154-
// set default symbol : cross with width=20
154+
// set default symbol : cross with width=3
155155
QgsSymbolLayerV2List symbolList;
156156
symbolList << new QgsSimpleMarkerSymbolLayerV2( "cross", DEFAULT_SIMPLEMARKER_COLOR,
157-
DEFAULT_SIMPLEMARKER_BORDERCOLOR, 20, 0 );
157+
DEFAULT_SIMPLEMARKER_BORDERCOLOR, 3, 0 );
158158
mMarkerSymbol = new QgsMarkerSymbolV2( symbolList );
159159
// mMarkerSymbol = new QgsMarkerSymbolV2();
160160
}
@@ -233,7 +233,7 @@ void QgsDecorationGrid::render( QPainter * p )
233233
if ( ! mLineSymbol )
234234
return;
235235

236-
QgsRenderContext context;
236+
QgsRenderContext context = QgsRenderContext::fromMapSettings( QgisApp::instance()->mapCanvas()->mapSettings() );
237237
context.setPainter( p );
238238
mLineSymbol->startRender( context, 0 );
239239

@@ -311,7 +311,7 @@ void QgsDecorationGrid::render( QPainter * p )
311311
if ( ! mMarkerSymbol )
312312
return;
313313

314-
QgsRenderContext context;
314+
QgsRenderContext context = QgsRenderContext::fromMapSettings( QgisApp::instance()->mapCanvas()->mapSettings() );
315315
context.setPainter( p );
316316
mMarkerSymbol->startRender( context, 0 );
317317

0 commit comments

Comments
 (0)
Please sign in to comment.