Skip to content

Commit 8cac1ff

Browse files
author
g_j_m
committed
A revision to commit 5502 (there was a compiler warning that
I didn't see during testing). git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@5504 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent 122a9fc commit 8cac1ff

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/composer/qgscomposervectorlegend.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -827,7 +827,7 @@ bool QgsComposerVectorLegend::writeSettings ( void )
827827
if ( !layer->visible() ) continue;
828828

829829
QString id = layer->getLayerID();
830-
path.sprintf("/composition_%d/vectorlegend_%d/layers/layer_%s/", mComposition->id(), mId, id );
830+
path.sprintf("/composition_%d/vectorlegend_%d/layers/layer_%s/", mComposition->id(), mId, id.toLocal8Bit().data() );
831831
QgsProject::instance()->writeEntry( "Compositions", path+"on", layerOn(id) );
832832
QgsProject::instance()->writeEntry( "Compositions", path+"group", layerGroup(id) );
833833
}
@@ -871,7 +871,7 @@ bool QgsComposerVectorLegend::readSettings ( void )
871871

872872
QString id = (*it).right( (*it).length() - (idx+1) );
873873

874-
path.sprintf("/composition_%d/vectorlegend_%d/layers/layer_%s/", mComposition->id(), mId, id );
874+
path.sprintf("/composition_%d/vectorlegend_%d/layers/layer_%s/", mComposition->id(), mId, id.toLocal8Bit().data() );
875875
bool on = QgsProject::instance()->readBoolEntry("Compositions", path+"on", true, &ok);
876876
int group = QgsProject::instance()->readNumEntry("Compositions", path+"group", 0, &ok);
877877
setLayerOn ( id , on );

0 commit comments

Comments
 (0)