[gegl] operations/external/raw-load: Reinitialize libraw upon path change



commit a0c7c9e2d966f55cb773f25f439feaf9a67d0dac
Author: Debarshi Ray <debarshir gnome org>
Date:   Sat Feb 4 01:53:52 2017 +0100

    operations/external/raw-load: Reinitialize libraw upon path change
    
    The intention was to reinitialize libraw when the path changed.
    However, due to this typo, it was getting reinitialized if the path
    didn't change but not if it did change.
    
    Fallout from 490ee6e55252a8d4bf61d3b869b53ca95f3613c5
    
    https://bugzilla.gnome.org/show_bug.cgi?id=778160

 operations/external/raw-load.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/operations/external/raw-load.c b/operations/external/raw-load.c
index a2e86a8..d2fb095 100644
--- a/operations/external/raw-load.c
+++ b/operations/external/raw-load.c
@@ -83,7 +83,7 @@ prepare (GeglOperation *operation)
       o->user_data = (gpointer)p;
     }
 
-  if (p->cached_path && !strcmp (p->cached_path, o->path))
+  if (p->cached_path && strcmp (p->cached_path, o->path))
   {
      raw_close (o);
   }


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