[eog] Fix critical warning
- From: Felix Riemann <friemann src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [eog] Fix critical warning
- Date: Fri, 8 Jan 2010 23:20:33 +0000 (UTC)
commit 8cc898563d13b185f60c4d2c36eedfa7aff55307
Author: Felix Riemann <friemann gnome org>
Date: Sat Jan 9 00:11:53 2010 +0100
Fix critical warning
We called eog_is_animation() in a location where it was possible the
passed image wasn't set.
src/eog-scroll-view.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/eog-scroll-view.c b/src/eog-scroll-view.c
index 60005dd..089d60e 100644
--- a/src/eog-scroll-view.c
+++ b/src/eog-scroll-view.c
@@ -822,7 +822,7 @@ request_paint_area (EogScrollView *view, GdkRectangle *area)
* It's sufficient to add only a antitaliased idle update
*/
priv->progressive_state = PROGRESSIVE_NONE;
- else if (!eog_image_is_animation (priv->image))
+ else if (!priv->image || !eog_image_is_animation (priv->image))
/* do nearest neigbor before anti aliased version,
except for animations to avoid a "blinking" effect. */
paint_rectangle (view, &r, GDK_INTERP_NEAREST);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]