From 5960fad0b8afe6d94ae718bf3af6249a529fc0f8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9s?= Date: Wed, 15 Dec 2021 18:58:16 -0300 Subject: fix in unformat. call to copy_to_undostruct with wrong parameters. --- CHANGES | 2 ++ src/color.c | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/CHANGES b/CHANGES index 5d7738f..23ff180 100644 --- a/CHANGES +++ b/CHANGES @@ -69,6 +69,8 @@ fix in cw dw c$ d$ commands of EDIT_MODE fix leak in del_selected_cells fix when using C-r in INSERT_MODE fix arguments reversed on sc.colrow2a +fix in delete_filters that caused SEGFAULT. Issue 637. +fix in unformat. call to copy_to_undostruct with wrong parameters. Pending to make v0.8.3 release diff --git a/src/color.c b/src/color.c index d92b1e2..c8aeedb 100644 --- a/src/color.c +++ b/src/color.c @@ -507,7 +507,7 @@ void unformat(struct sheet * sh, int r, int c, int rf, int cf) { roman->modflg++; #ifdef UNDO create_undo_action(); - copy_to_undostruct(sh, r, rf, c, cf, UNDO_DEL, IGNORE_DEPS, NULL); + copy_to_undostruct(sh, r, c, rf, cf, UNDO_DEL, IGNORE_DEPS, NULL); #endif } @@ -527,7 +527,7 @@ void unformat(struct sheet * sh, int r, int c, int rf, int cf) { } if (! roman->loading) { #ifdef UNDO - copy_to_undostruct(sh, r, rf, c, cf, UNDO_ADD, IGNORE_DEPS, NULL); + copy_to_undostruct(sh, r, c, rf, cf, UNDO_ADD, IGNORE_DEPS, NULL); end_undo_action(); #endif ui_update(TRUE); -- cgit v1.2.3