{
SswRange *range = SSW_SHEET(de->var_sheet)->selection;
+ if (range->start_x > range->end_x)
+ {
+ gint temp = range->start_x;
+ range->start_x = range->end_x;
+ range->end_x = temp;
+ }
+
psppire_dict_delete_variables (de->dict, range->start_y,
(range->end_y - range->start_y + 1));
PsppireDataStore *data_store = NULL;
g_object_get (sheet, "data-model", &data_store, NULL);
+ if (range->start_x > range->end_x)
+ {
+ gint temp = range->start_x;
+ range->start_x = range->end_x;
+ range->end_x = temp;
+ }
+
psppire_dict_delete_variables (data_store->dict, range->start_x,
(range->end_x - range->start_x + 1));
PsppireDict *dict = NULL;
g_object_get (sheet, "data-model", &dict, NULL);
+ if (range->start_x > range->end_x)
+ {
+ gint temp = range->start_x;
+ range->start_x = range->end_x;
+ range->end_x = temp;
+ }
+
psppire_dict_delete_variables (dict, range->start_y,
(range->end_y - range->start_y + 1));