[gnumeric] Debug: improve rendering of style deps.
- From: Morten Welinder <mortenw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnumeric] Debug: improve rendering of style deps.
- Date: Thu, 11 Dec 2014 18:58:43 +0000 (UTC)
commit 3dd9b8f27f43334e2b2002fc00dc31e2ede83561
Author: Morten Welinder <terra gnome org>
Date: Thu Dec 11 13:57:16 2014 -0500
Debug: improve rendering of style deps.
ChangeLog | 2 ++
src/dependent.c | 9 +++++++--
2 files changed, 9 insertions(+), 2 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 4dc6831..c4f538b 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,7 @@
2014-12-11 Morten Welinder <terra gnome org>
+ * src/dependent.c (style_dep_debug_name): Include position too.
+
* src/sheet.c (sheet_colrow_add): Merge from sheet_col_add and
sheet_row_add.
(colrow_move): Change parameterization slightly.
diff --git a/src/dependent.c b/src/dependent.c
index a49ee2f..2e4ae1c 100644
--- a/src/dependent.c
+++ b/src/dependent.c
@@ -1401,7 +1401,9 @@ style_dep_pos (GnmDependent const *dep)
static void
style_dep_debug_name (GnmDependent const *dep, GString *target)
{
- g_string_append_printf (target, "StyleDep%p", (void *)dep);
+ g_string_append_printf (target, "StyleDep %s[%p]",
+ cellpos_as_string (style_dep_pos (dep)),
+ dep);
}
/*****************************************************************************/
@@ -3186,7 +3188,10 @@ dependents_dump (Workbook *wb)
WORKBOOK_FOREACH_SHEET
(wb, sheet,
{
- g_printerr ("Dependencies for %s:\n", sheet->name_unquoted);
+ int count = 0;
+ SHEET_FOREACH_DEPENDENT (sheet, dep, count++;);
+ g_printerr ("Dependencies for %s (count=%d):\n",
+ sheet->name_unquoted, count);
gnm_dep_container_dump (sheet->deps, sheet);
});
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]