Skip to content
Permalink
Browse files
fix #6817 (introduce with a1a1fb7)
  • Loading branch information
brushtyler committed Dec 6, 2012
1 parent 6ed8a23 commit 80319e310b09ec73cbbd8d9dba2c2634b2ae2745
Showing with 11 additions and 15 deletions.
  1. +11 −15 src/gui/symbology-ng/qgsgraduatedsymbolrendererv2widget.cpp
@@ -703,22 +703,18 @@ QList<QgsSymbolV2*> QgsGraduatedSymbolRendererV2Widget::selectedSymbols()
QModelIndexList::const_iterator indexIt = selectedIndexes.constBegin();
for ( ; indexIt != selectedIndexes.constEnd(); ++indexIt )
{
QStandardItem* currentItem = qobject_cast<const QStandardItemModel*>( m->model() )->itemFromIndex( *indexIt );
if ( currentItem )
QStringList list = m->model()->data( *indexIt ).toString().split( " " );
if ( list.size() < 3 )
{
QStringList list = currentItem->data( 0 ).toString().split( " " );
if ( list.size() < 3 )
{
continue;
}

double lowerBound = list.at( 0 ).toDouble();
double upperBound = list.at( 2 ).toDouble();
QgsSymbolV2* s = findSymbolForRange( lowerBound, upperBound, ranges );
if ( s )
{
selectedSymbols.append( s );
}
continue;
}

double lowerBound = list.at( 0 ).toDouble();
double upperBound = list.at( 2 ).toDouble();
QgsSymbolV2* s = findSymbolForRange( lowerBound, upperBound, ranges );
if ( s )
{
selectedSymbols.append( s );
}
}
}

0 comments on commit 80319e3

Please sign in to comment.