Skip to content

Commit a3abd61

Browse files
author
mhugent
committed
Fix for copy symbology bug (occured when copying unique value symbologies)
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@5319 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent d868a63 commit a3abd61

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/gui/qgsuniquevaluerenderer.cpp

+2-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,8 @@ QgsUniqueValueRenderer::QgsUniqueValueRenderer(const QgsUniqueValueRenderer& oth
3939
{
4040
mVectorType = other.mVectorType;
4141
mClassificationField = other.mClassificationField;
42-
for(std::map<QString, QgsSymbol*>::iterator it=mSymbols.begin(); it!=mSymbols.end(); ++it)
42+
std::map<QString, QgsSymbol*> s = other.mSymbols;
43+
for(std::map<QString, QgsSymbol*>::iterator it=s.begin(); it!=s.end(); ++it)
4344
{
4445
QgsSymbol* s = new QgsSymbol(*(it->second));
4546
insertValue(it->first, s);

0 commit comments

Comments
 (0)