[gimp/gimp-2-10] plug-ins: use g_message instead of g_printerr when there is data loss.
- From: Jacob Boerema <jboerema src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp/gimp-2-10] plug-ins: use g_message instead of g_printerr when there is data loss.
- Date: Sat, 24 Oct 2020 22:35:54 +0000 (UTC)
commit b5d5deca7e98f34c26bfcce6958bf318574d8371
Author: Jacob Boerema <jgboerema gmail com>
Date: Sat Oct 24 18:31:31 2020 -0400
plug-ins: use g_message instead of g_printerr when there is data loss.
After discussion with Jehan we concluded that it is better to report
these data loss messages to the user using g_message.
(cherry picked from commit f336f86f604302fefa17187783ce2a6a8ff0b240)
plug-ins/file-tiff/file-tiff-load.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/plug-ins/file-tiff/file-tiff-load.c b/plug-ins/file-tiff/file-tiff-load.c
index dc458c3c25..255930111f 100644
--- a/plug-ins/file-tiff/file-tiff-load.c
+++ b/plug-ins/file-tiff/file-tiff-load.c
@@ -1581,7 +1581,7 @@ load_contiguous (TIFF *tif,
else if (TIFFReadScanline (tif, buffer, y, 0) == -1)
{
/* Error reading scanline, stop loading */
- g_printerr ("Reading scanline failed. Image may be corrupt at line %d.\n", y);
+ g_message (_("Reading scanline failed. Image may be corrupt at line %d."), y);
g_free (buffer);
g_free (bw_buffer);
return;
@@ -1756,7 +1756,7 @@ load_separate (TIFF *tif,
else if (TIFFReadScanline (tif, buffer, y, compindex) == -1)
{
/* Error reading scanline, stop loading */
- g_printerr ("Reading scanline failed. Image may be corrupt at line %d.\n", y);
+ g_message (_("Reading scanline failed. Image may be corrupt at line %d."), y);
g_free (buffer);
g_free (bw_buffer);
return;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]