Skip to content

Commit

Permalink
A revision to commit 5502 (there was a compiler warning that
Browse files Browse the repository at this point in the history
I didn't see during testing).


git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@5504 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
g_j_m committed Jun 1, 2006
1 parent 122a9fc commit 8cac1ff
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/composer/qgscomposervectorlegend.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -827,7 +827,7 @@ bool QgsComposerVectorLegend::writeSettings ( void )
if ( !layer->visible() ) continue;

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

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

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

0 comments on commit 8cac1ff

Please sign in to comment.