]> www.fi.muni.cz Git - evince.git/commitdiff
[libview] Make sure new selection region is not empty
authorCarlos Garcia Campos <carlosgc@gnome.org>
Mon, 11 Jan 2010 11:28:35 +0000 (12:28 +0100)
committerCarlos Garcia Campos <carlosgc@gnome.org>
Mon, 11 Jan 2010 11:28:35 +0000 (12:28 +0100)
libview/ev-view.c

index 47fb438c94f2c97b90e09f71a3feafffb31b58df..731474045274f56435e6d1a3e61e69a294a30ce6 100644 (file)
@@ -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);
                        }
                }