Skip to content
Permalink
Browse files

Initialize some uninitialized variables

  • Loading branch information
m-kuhn committed Nov 14, 2014
1 parent e0ab4b2 commit 5457d7299cfd517666ad34be44c9021d78c79488
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/core/layertree/qgslayertreemodellegendnode.cpp
@@ -171,8 +171,8 @@ QVariant QgsSymbolV2LegendNode::data( int role ) const
QPixmap pix;
if ( mItem.symbol() )
{
double scale, mupp;
int dpi;
double scale, mupp = 0;
int dpi = 0;
if ( model() )
model()->legendMapViewData( &mupp, &dpi, &scale );
bool validData = mupp != 0 && dpi != 0 && scale != 0;

0 comments on commit 5457d72

Please sign in to comment.
You can’t perform that action at this time.