Skip to content
Permalink
Browse files
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
  • Loading branch information
g_j_m committed Jun 1, 2006
1 parent 122a9fc commit 8cac1ff93229253598bf4060e6c41bd551a20cce
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/composer/qgscomposervectorlegend.cpp
@@ -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) );
}
@@ -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 );

0 comments on commit 8cac1ff

Please sign in to comment.