Skip to content
Permalink
Browse files

Initialize some uninitialized variables

  • Loading branch information
m-kuhn authored and jef-n committed Nov 18, 2014
1 parent f8a21bf commit 72c92e389b9e5c4508ecd8e5c72ca485861939dd
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 72c92e3

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