Skip to content

Commit

Permalink
Decoration grid: fix symbol sizes + default cross size
Browse files Browse the repository at this point in the history
  • Loading branch information
wonder-sk committed Apr 1, 2014
1 parent 1b4c8b6 commit 1c3b5e4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/app/qgsdecorationgrid.cpp
Expand Up @@ -151,10 +151,10 @@ void QgsDecorationGrid::projectRead()
} }
if ( ! mMarkerSymbol ) if ( ! mMarkerSymbol )
{ {
// set default symbol : cross with width=20 // set default symbol : cross with width=3
QgsSymbolLayerV2List symbolList; QgsSymbolLayerV2List symbolList;
symbolList << new QgsSimpleMarkerSymbolLayerV2( "cross", DEFAULT_SIMPLEMARKER_COLOR, symbolList << new QgsSimpleMarkerSymbolLayerV2( "cross", DEFAULT_SIMPLEMARKER_COLOR,
DEFAULT_SIMPLEMARKER_BORDERCOLOR, 20, 0 ); DEFAULT_SIMPLEMARKER_BORDERCOLOR, 3, 0 );
mMarkerSymbol = new QgsMarkerSymbolV2( symbolList ); mMarkerSymbol = new QgsMarkerSymbolV2( symbolList );
// mMarkerSymbol = new QgsMarkerSymbolV2(); // mMarkerSymbol = new QgsMarkerSymbolV2();
} }
Expand Down Expand Up @@ -233,7 +233,7 @@ void QgsDecorationGrid::render( QPainter * p )
if ( ! mLineSymbol ) if ( ! mLineSymbol )
return; return;


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


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


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


Expand Down

0 comments on commit 1c3b5e4

Please sign in to comment.