Skip to content

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
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, (const char *)id.toLocal8Bit().data() );
830+
path.sprintf("/composition_%d/vectorlegend_%d/layers/layer_%s/", mComposition->id(), mId, id );
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, (const char *)id.toLocal8Bit().data() );
874+
path.sprintf("/composition_%d/vectorlegend_%d/layers/layer_%s/", mComposition->id(), mId, id );
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 );

‎src/gui/qgisapp.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2669,7 +2669,7 @@ bool QgisApp::addProject(QString projectFile)
26692669
qDebug( "%s:%d BAD LAYERS FOUND", __FILE__, __LINE__ );
26702670

26712671
QMessageBox::critical( 0x0,
2672-
tr("Unable to open project"), e.what(), QMessageBox::Ok,
2672+
tr("Unable to open project"), QString::fromLocal8Bit(e.what()), QMessageBox::Ok,
26732673
Qt::NoButton );
26742674

26752675
mMapCanvas->freeze(false);

0 commit comments

Comments
 (0)
Please sign in to comment.