Commit 2716cdda authored by Morten Welinder's avatar Morten Welinder

colrow: don't create new columns/rows unless we have to.

This caused a failure in t6510 on re-applying auto filters.
parent e0395407
2014-12-27 Morten Welinder <terra@gnome.org>
* src/colrow.c (colrow_set_visibility): Don't create columns/rows
unless we really have to.
2014-12-25 Morten Welinder <terra@gnome.org>
* src/sheet-object-graph.c (sog_cb_open_in_new_window): Fix
......
......@@ -1216,8 +1216,11 @@ colrow_set_visibility (Sheet *sheet, gboolean is_cols,
}
if (changed && 0 <= i && i < colrow_max (is_cols, sheet)) {
ColRowInfo * const cri = sheet_colrow_fetch (sheet, i, is_cols);
if (prev_outline > cri->outline_level)
ColRowInfo *cri = sheet_colrow_get (sheet, i, is_cols);
if (!cri && !visible && prev_outline > 0)
cri = sheet_colrow_fetch (sheet, i, is_cols);
if (cri && prev_outline > cri->outline_level)
cri->is_collapsed = !visible;
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment