Skip to content
Permalink
Browse files

Applied the patch in ticket #57. Resolves the bug in ticket #57.

git-svn-id: http://svn.osgeo.org/qgis/trunk@5502 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
g_j_m
g_j_m committed Jun 1, 2006
1 parent 0f11f90 commit c9eaae59771d50f73b5cbd5405ddedc4e9da1a31
Showing with 3 additions and 3 deletions.
  1. +2 −2 src/composer/qgscomposervectorlegend.cpp
  2. +1 −1 src/gui/qgisapp.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, (const char *)id.toLocal8Bit().data() );
path.sprintf("/composition_%d/vectorlegend_%d/layers/layer_%s/", mComposition->id(), mId, id );
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, (const char *)id.toLocal8Bit().data() );
path.sprintf("/composition_%d/vectorlegend_%d/layers/layer_%s/", mComposition->id(), mId, id );
bool on = QgsProject::instance()->readBoolEntry("Compositions", path+"on", true, &ok);
int group = QgsProject::instance()->readNumEntry("Compositions", path+"group", 0, &ok);
setLayerOn ( id , on );
@@ -2669,7 +2669,7 @@ bool QgisApp::addProject(QString projectFile)
qDebug( "%s:%d BAD LAYERS FOUND", __FILE__, __LINE__ );

QMessageBox::critical( 0x0,
tr("Unable to open project"), e.what(), QMessageBox::Ok,
tr("Unable to open project"), QString::fromLocal8Bit(e.what()), QMessageBox::Ok,
Qt::NoButton );

mMapCanvas->freeze(false);

0 comments on commit c9eaae5

Please sign in to comment.
You can’t perform that action at this time.