mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-25 00:58:06 -05:00
Fix potential crash in vector gradient dialog info button
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.
This commit is contained in:
parent
f9231df1f1
commit
84dade97f6
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user