[gnumeric] value_dump: debug improvement.



commit 1c65e7bf124a8a2ddf5047280af3ab0e928b9d51
Author: Morten Welinder <terra gnome org>
Date:   Sat Sep 26 13:35:17 2020 -0400

    value_dump: debug improvement.

 src/value-sheet.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/value-sheet.c b/src/value-sheet.c
index 230e93949..c3e7c5409 100644
--- a/src/value-sheet.c
+++ b/src/value-sheet.c
@@ -64,7 +64,7 @@ value_dump (GnmValue const *value)
                g_print ("CellRange\n");
                if (sheet && sheet->name_unquoted)
                        g_print ("%s:", sheet->name_quoted);
-               else
+               else if (sheet)
                        g_print ("%p :", (void *)sheet);
                g_print ("%s%s%s%s\n",
                        (c->col_relative ? "":"$"), col_name(c->col),
@@ -72,7 +72,7 @@ value_dump (GnmValue const *value)
                c = &value->v_range.cell.b;
                if (sheet && sheet->name_quoted)
                        g_print ("%s:", sheet->name_unquoted);
-               else
+               else if (sheet)
                        g_print ("%p :", (void *)sheet);
                g_print ("%s%s%s%s\n",
                        (c->col_relative ? "":"$"), col_name(c->col),


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