Skip to content

Commit

Permalink
Initialize some uninitialized variables
Browse files Browse the repository at this point in the history
  • Loading branch information
m-kuhn authored and jef-n committed Nov 18, 2014
1 parent f8a21bf commit 72c92e3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/core/layertree/qgslayertreemodellegendnode.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 72c92e3

Please sign in to comment.