[easytag] Fix invariant check in PictureEntry_Update



commit 7e0b8196fcfc5ed9b66c8360ff8c6a40b851d1b2
Author: David King <amigadave amigadave com>
Date:   Mon Feb 11 17:37:18 2013 +0000

    Fix invariant check in PictureEntry_Update

 src/picture.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/picture.c b/src/picture.c
index a67b350..68db119 100644
--- a/src/picture.c
+++ b/src/picture.c
@@ -911,7 +911,7 @@ void PictureEntry_Update (Picture *pic, gboolean select_it)
     GdkPixbufLoader *loader = 0;
     GError *error = NULL;
     
-    g_return_if_fail (pic != NULL && PictureEntryView != NULL);
+    g_return_if_fail (pic != NULL || PictureEntryView != NULL);
 
     if (!pic->data)
     {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]