Skip to content

Commit 5457d72

Browse files
committed
Initialize some uninitialized variables
1 parent e0ab4b2 commit 5457d72

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/core/layertree/qgslayertreemodellegendnode.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -171,8 +171,8 @@ QVariant QgsSymbolV2LegendNode::data( int role ) const
171171
QPixmap pix;
172172
if ( mItem.symbol() )
173173
{
174-
double scale, mupp;
175-
int dpi;
174+
double scale, mupp = 0;
175+
int dpi = 0;
176176
if ( model() )
177177
model()->legendMapViewData( &mupp, &dpi, &scale );
178178
bool validData = mupp != 0 && dpi != 0 && scale != 0;

0 commit comments

Comments
 (0)