fix for writing labels to xml

git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@2330 c8812cc2-4d05-0410-92ff-de0c093fc19c
This commit is contained in:
mhugent 2004-11-24 23:30:20 +00:00
parent d9174c526d
commit 5171780c57

View File

@ -170,7 +170,7 @@ void QgsUValDialog::apply()
QgsSymbol* newsymbol=new QgsSymbol();
newsymbol->setPen(symbol->pen());
newsymbol->setBrush(symbol->brush());
QgsRenderItem* ritem=new QgsRenderItem(newsymbol,it->first,"");
QgsRenderItem* ritem=new QgsRenderItem(newsymbol,it->first,it->second->label());
renderer->insertValue(it->first,ritem);
//find out the width of the string
valuewidth=fm.width(it->first);