Skip to content
Permalink
Browse files
Decoration grid: fix symbol sizes + default cross size
  • Loading branch information
wonder-sk committed Apr 1, 2014
1 parent 1b4c8b6 commit 1c3b5e4d6d1f9867be35e9a8f421671a45bca853
Showing with 4 additions and 4 deletions.
  1. +4 −4 src/app/qgsdecorationgrid.cpp
@@ -151,10 +151,10 @@ void QgsDecorationGrid::projectRead()
}
if ( ! mMarkerSymbol )
{
// set default symbol : cross with width=20
// set default symbol : cross with width=3
QgsSymbolLayerV2List symbolList;
symbolList << new QgsSimpleMarkerSymbolLayerV2( "cross", DEFAULT_SIMPLEMARKER_COLOR,
DEFAULT_SIMPLEMARKER_BORDERCOLOR, 20, 0 );
DEFAULT_SIMPLEMARKER_BORDERCOLOR, 3, 0 );
mMarkerSymbol = new QgsMarkerSymbolV2( symbolList );
// mMarkerSymbol = new QgsMarkerSymbolV2();
}
@@ -233,7 +233,7 @@ void QgsDecorationGrid::render( QPainter * p )
if ( ! mLineSymbol )
return;

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

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

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

0 comments on commit 1c3b5e4

Please sign in to comment.