[gnumeric] ssconvert: only print resize message with --verbose



commit 1c222354d47c6122e5796b7bb7820c71bcd81b19
Author: Morten Welinder <terra gnome org>
Date:   Fri Mar 14 09:11:58 2014 -0400

    ssconvert: only print resize message with --verbose

 ChangeLog       |    2 ++
 src/ssconvert.c |    4 +++-
 2 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 8db3ff4..28ca08c 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -4,6 +4,8 @@
        extracted from gnm_style_conditions_eval.  Make "equal" case
        insensitive.  Fixes #726246.
 
+       * src/ssconvert.c (convert): Show resize message only if verbose.
+
 2014-03-12  Morten Welinder  <terra gnome org>
 
        * src/style-conditions.c (gnm_style_cond_get_alternate_expr): New
diff --git a/src/ssconvert.c b/src/ssconvert.c
index f8a44dd..4e9cedc 100644
--- a/src/ssconvert.c
+++ b/src/ssconvert.c
@@ -769,7 +769,9 @@ convert (char const *inarg, char const *outarg, char const *mergeargs[],
                if (sscanf (ssconvert_resize, "%dx%d", &rows, &cols) == 2) {
                        int n;
 
-                       g_printerr ("Resizing to %dx%d\n", rows, cols);
+                       if (ssconvert_verbose)
+                               g_printerr ("Resizing to %dx%d\n", rows, cols);
+
                        for (n = workbook_sheet_count (wb) - 1;
                             n >= 0;
                             n--) {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]