Skip to content

Commit

Permalink
Fix potential crash in vector gradient dialog info button
Browse files Browse the repository at this point in the history
Note that this doesn't seem to be actually utilised by any
of the preinstalled gradients, but if users have created
a gradient with info then clicking the button would have
crashed QGIS.

Identified by clazy.
  • Loading branch information
nyalldawson committed Oct 11, 2015
1 parent f9231df commit 84dade9
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/gui/symbology-ng/qgsvectorgradientcolorrampv2dialog.cpp
Expand Up @@ -100,8 +100,9 @@ void QgsVectorGradientColorRampV2Dialog::on_btnInformation_pressed()
tableInfo->setRowCount( mRamp->info().count() );
tableInfo->setColumnCount( 2 );
int i = 0;
for ( QgsStringMap::const_iterator it = mRamp->info().constBegin();
it != mRamp->info().constEnd(); ++it )
QgsStringMap rampInfo = mRamp->info();
for ( QgsStringMap::const_iterator it = rampInfo.constBegin();
it != rampInfo.constEnd(); ++it )
{
if ( it.key().startsWith( "cpt-city" ) )
continue;
Expand Down

0 comments on commit 84dade9

Please sign in to comment.