Skip to content
Permalink
Browse files

Fix for bug #31 std::list iterator not dereferencable bug in the QgsU…

…niqueValueDialog

With thanks to Mateusz Loskot.



git-svn-id: http://svn.osgeo.org/qgis/trunk@5105 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
timlinux
timlinux committed Mar 29, 2006
1 parent b8e54a4 commit 39a49242a3980c8c14c6bbf713d516bf60c761a8
Showing with 5 additions and 2 deletions.
  1. +5 −2 src/gui/qgsuniquevaluedialog.cpp
@@ -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();

0 comments on commit 39a4924

Please sign in to comment.
You can’t perform that action at this time.