[evince] [libview] Make sure new selection region is not empty
- From: Carlos Garcia Campos <carlosgc src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [evince] [libview] Make sure new selection region is not empty
- Date: Mon, 11 Jan 2010 11:32:22 +0000 (UTC)
commit 82769a9fd31a34c134d7cacbe66c90aee88f6034
Author: Carlos Garcia Campos <carlosgc gnome org>
Date: Mon Jan 11 12:28:35 2010 +0100
[libview] Make sure new selection region is not empty
libview/ev-view.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/libview/ev-view.c b/libview/ev-view.c
index 47fb438..7314740 100644
--- a/libview/ev-view.c
+++ b/libview/ev-view.c
@@ -5367,7 +5367,7 @@ merge_selection_region (EvView *view,
view->scale,
&tmp_region);
- if (tmp_region) {
+ if (tmp_region && !gdk_region_empty (tmp_region)) {
new_sel->covered_region = gdk_region_copy (tmp_region);
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]