From 77566fe285fe0fb4ec1ac5a831d1cb27bf159945 Mon Sep 17 00:00:00 2001 From: Berthold Stoeger Date: Sat, 19 Dec 2020 11:47:41 +0100 Subject: undo: add \n to console warning error messages To make the output more readable. Moreover, fix a comment-typo. Signed-off-by: Berthold Stoeger --- commands/command_pictures.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'commands/command_pictures.cpp') diff --git a/commands/command_pictures.cpp b/commands/command_pictures.cpp index 7abe3636b..2d57221fb 100644 --- a/commands/command_pictures.cpp +++ b/commands/command_pictures.cpp @@ -24,7 +24,7 @@ void SetPictureOffset::redo() { picture *pic = dive_get_picture(d, filename); if (!pic) { - fprintf(stderr, "SetPictureOffset::redo(): picture disappeared!"); + fprintf(stderr, "SetPictureOffset::redo(): picture disappeared!\n"); return; } std::swap(pic->offset, offset); @@ -73,8 +73,8 @@ static std::vector removePictures(std::vectorpictures, fn.c_str()); if (idx < 0) { - fprintf(stderr, "removePictures(): picture disappeared!"); - continue; // Huh? We made sure that this can't happen by filtering out non-existant pictures. + fprintf(stderr, "removePictures(): picture disappeared!\n"); + continue; // Huh? We made sure that this can't happen by filtering out non-existent pictures. } filenames.push_back(QString::fromStdString(fn)); toAdd.pics.emplace_back(list.d->pictures.pictures[idx]); @@ -103,7 +103,7 @@ static std::vector addPictures(std::vectorpictures, pic.filename.c_str()); // This should *not* already exist! if (idx >= 0) { - fprintf(stderr, "addPictures(): picture disappeared!"); + fprintf(stderr, "addPictures(): picture disappeared!\n"); continue; // Huh? We made sure that this can't happen by filtering out existing pictures. } picsForSignal.push_back(pic); -- cgit v1.2.3-70-g09d2