build failed when using -Werror=format-security, no Issue
This commit is contained in:
@@ -707,7 +707,8 @@ void EditorPanel::displayError (Glib::ustring title, Glib::ustring descr) {
|
||||
GtkWidget* msgd = gtk_message_dialog_new_with_markup (NULL,
|
||||
GTK_DIALOG_DESTROY_WITH_PARENT,
|
||||
GTK_MESSAGE_ERROR,
|
||||
GTK_BUTTONS_OK,
|
||||
GTK_BUTTONS_OK,
|
||||
"<b>%s</b>",
|
||||
descr.data());
|
||||
gtk_window_set_title((GtkWindow*)msgd, title.data());
|
||||
g_signal_connect_swapped (msgd, "response",
|
||||
@@ -1133,8 +1134,7 @@ bool EditorPanel::idle_imageSaved(ProgressConnector<int> *pc,rtengine::IImage16*
|
||||
pparams.save (fname + ".out" + paramFileExtension);
|
||||
}
|
||||
} else {
|
||||
Glib::ustring msg_ = Glib::ustring("<b>") + fname + ": Error during image saving\n</b>";
|
||||
error(M("MAIN_MSG_CANNOTSAVE"), "<b>"+fname+"</b>");
|
||||
error(M("MAIN_MSG_CANNOTSAVE"), fname);
|
||||
}
|
||||
|
||||
saveimgas->set_sensitive(true);
|
||||
|
Reference in New Issue
Block a user