Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/libview
diff options
context:
space:
mode:
authorCarlos Garcia Campos <carlosgc@gnome.org>2010-01-11 11:28:35 (GMT)
committer Carlos Garcia Campos <carlosgc@gnome.org>2010-01-11 11:28:35 (GMT)
commit82769a9fd31a34c134d7cacbe66c90aee88f6034 (patch)
tree9f87bee953195ae01dc9c7be94baecf216de3dd4 /libview
parentb4b109f954781cdcdcfb90202868d2f7efb43e40 (diff)
[libview] Make sure new selection region is not empty
Diffstat (limited to 'libview')
-rw-r--r--libview/ev-view.c2
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);
}
}