[gnumeric] ssdiff: set exit code for col/row diffs.
- From: Morten Welinder <mortenw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnumeric] ssdiff: set exit code for col/row diffs.
- Date: Mon, 4 Dec 2017 02:35:45 +0000 (UTC)
commit 147bc2943293f282a590cd6a13ad20f208e56399
Author: Morten Welinder <terra gnome org>
Date: Sun Dec 3 21:35:22 2017 -0500
ssdiff: set exit code for col/row diffs.
src/ssdiff.c | 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)
---
diff --git a/src/ssdiff.c b/src/ssdiff.c
index 917bdf8..be2bb9d 100644
--- a/src/ssdiff.c
+++ b/src/ssdiff.c
@@ -989,8 +989,10 @@ diff_sheets_colrow (GnmDiffState *state, Sheet *old_sheet, Sheet *new_sheet, gbo
ColRowInfo const *new_def = sheet_colrow_get_default (new_sheet, is_cols);
int i, N;
- if (!colrow_equal (old_def, new_def))
+ if (!colrow_equal (old_def, new_def)) {
+ state->diff_found = TRUE;
state->actions->colrow_changed (state, old_def, new_def, is_cols, -1);
+ }
N = MIN (colrow_max (is_cols, old_sheet), colrow_max (is_cols, new_sheet));
for (i = 0; i < N; i++) {
@@ -1001,8 +1003,10 @@ diff_sheets_colrow (GnmDiffState *state, Sheet *old_sheet, Sheet *new_sheet, gbo
continue; // Considered equal, even if defaults are different
if (!ocr) ocr = old_def;
if (!ncr) ncr = new_def;
- if (!colrow_equal (ocr, ncr))
+ if (!colrow_equal (ocr, ncr)) {
+ state->diff_found = TRUE;
state->actions->colrow_changed (state, ocr, ncr, is_cols, i);
+ }
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]