summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Berthold Stoeger <bstoeger@mail.tuwien.ac.at>2020-12-19 11:47:41 +0100
committerGravatar bstoeger <32835590+bstoeger@users.noreply.github.com>2020-12-19 20:19:51 +0100
commit77566fe285fe0fb4ec1ac5a831d1cb27bf159945 (patch)
tree1514b1399a1e34fda186a274786d6ff64cc16107
parent385eb8484688368b23469effcb7ac9ca02c56aad (diff)
downloadsubsurface-77566fe285fe0fb4ec1ac5a831d1cb27bf159945.tar.gz
undo: add \n to console warning error messages
To make the output more readable. Moreover, fix a comment-typo. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
-rw-r--r--commands/command_pictures.cpp8
1 files changed, 4 insertions, 4 deletions
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<PictureListForAddition> removePictures(std::vector<PictureLis
for (const std::string &fn: list.filenames) {
int idx = get_picture_idx(&list.d->pictures, 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<PictureListForDeletion> addPictures(std::vector<PictureListFo
for (const PictureObj &pic: list.pics) {
int idx = get_picture_idx(&list.d->pictures, 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);