Commit ef318617 authored by Morten Welinder's avatar Morten Welinder

Paste: be a bit paranoid.

parent 2102d0f1
......@@ -342,6 +342,11 @@ table_cellregion_read (WorkbookControl *wbc, char const *reader_id,
(tmpsheet, &r, &fullr, col_defaults);
g_free (col_defaults);
// Just in case there was absolutely nothing in
// tmpsheet:
if (r.start.col > r.end.col)
range_init (&r, 0, 0, 0, 0);
ret = clipboard_copy_range (tmpsheet, &r);
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