From: Carlos Garcia Campos Date: Mon, 11 Jan 2010 11:28:35 +0000 (+0100) Subject: [libview] Make sure new selection region is not empty X-Git-Tag: EVINCE_2_29_5~2 X-Git-Url: https://www.fi.muni.cz/~kas/git//home/kas/public_html/git/?a=commitdiff_plain;h=82769a9fd31a34c134d7cacbe66c90aee88f6034;p=evince.git [libview] Make sure new selection region is not empty --- diff --git a/libview/ev-view.c b/libview/ev-view.c index 47fb438c..73147404 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); } }