Skip to content

Commit a8ecdb5

Browse files
mhugentnyalldawson
authored andcommitted
Fix crash when saving categorized symbology
1 parent ab0800a commit a8ecdb5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/core/symbology-ng/qgscategorizedsymbolrendererv2.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -724,7 +724,7 @@ QDomElement QgsCategorizedSymbolRendererV2::save( QDomDocument& doc )
724724
QgsSymbolV2Map symbols;
725725
QDomElement catsElem = doc.createElement( "categories" );
726726
QgsCategoryList::const_iterator it = mCategories.constBegin();
727-
for ( ; it != mCategories.end(); ++it )
727+
for ( ; it != mCategories.constEnd(); ++it )
728728
{
729729
const QgsRendererCategoryV2& cat = *it;
730730
QString symbolName = QString::number( i );

0 commit comments

Comments
 (0)