qgsuniguevaluedialog.cpp-undefined-behaviour-fix-mloskot-20060329.patch

Fix for std::list iterator not dereferencable bug - Mateusz Loskot -, 2006-03-28 03:48 PM

Download (671 Bytes)

View differences:

qgsuniquevaluedialog.cpp (kopia robocza)
57 57
    if (renderer)
58 58
    {
59 59
	mClassBreakBox->clear();
60
	std::list<int>::iterator iter=renderer->classificationAttributes().begin();
61
	int classattr=*iter;
60
	
61
	// XXX - mloskot - fix for Ticket #31 (bug)
62
	std::list<int> attributes = renderer->classificationAttributes();
63
	std::list<int>::iterator iter = attributes.begin();
64
	int classattr = *iter;
62 65
	mClassificationComboBox->setCurrentItem(classattr);
63 66

  
64 67
	const std::list<QgsSymbol*> list = renderer->symbols();