summaryrefslogtreecommitdiff
path: root/libview
diff options
context:
space:
mode:
Diffstat (limited to 'libview')
-rw-r--r--libview/ev-view.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/libview/ev-view.c b/libview/ev-view.c
index 0728bc41..89458b95 100644
--- a/libview/ev-view.c
+++ b/libview/ev-view.c
@@ -7605,17 +7605,17 @@ merge_selection_region (EvView *view,
cairo_region_union (region, new_sel->covered_region);
}
} else if (old_sel->covered_region) {
- region = cairo_region_copy (old_sel->covered_region);
+ region = cairo_region_reference (old_sel->covered_region);
} else if (new_sel->covered_region) {
- region = cairo_region_copy (new_sel->covered_region);
+ region = cairo_region_reference (new_sel->covered_region);
}
} else if (old_sel && !new_sel) {
if (old_sel->covered_region && !cairo_region_is_empty (old_sel->covered_region)) {
- region = cairo_region_copy (old_sel->covered_region);
+ region = cairo_region_reference (old_sel->covered_region);
}
} else if (!old_sel && new_sel) {
if (new_sel->covered_region && !cairo_region_is_empty (new_sel->covered_region)) {
- region = cairo_region_copy (new_sel->covered_region);
+ region = cairo_region_reference (new_sel->covered_region);
}
} else {
g_assert_not_reached ();