Skip to content

Commit

Permalink
Fix for bug #31 std::list iterator not dereferencable bug in the QgsU…
Browse files Browse the repository at this point in the history
…niqueValueDialog

With thanks to Mateusz Loskot.



git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@5105 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
timlinux committed Mar 29, 2006
1 parent 0288a72 commit 8a9c191
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/gui/qgsuniquevaluedialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,11 @@ QgsUniqueValueDialog::QgsUniqueValueDialog(QgsVectorLayer* vl): QDialog(), mVect
if (renderer)
{
mClassBreakBox->clear();
std::list<int>::iterator iter=renderer->classificationAttributes().begin();
int classattr=*iter;

// XXX - mloskot - fix for Ticket #31 (bug)
std::list<int> attributes = renderer->classificationAttributes();
std::list<int>::iterator iter = attributes.begin();
int classattr = *iter;
mClassificationComboBox->setCurrentItem(classattr);

const std::list<QgsSymbol*> list = renderer->symbols();
Expand Down

0 comments on commit 8a9c191

Please sign in to comment.