Author: abrander
Date: 2009-07-05 16:49:45 +0200 (Sun, 05 Jul 2009)
New Revision: 2550

Modified:
   trunk/src/rs-photo.c
Log:
Modified rs_photo_load_from_file() to trust preloaded photos.

Modified: trunk/src/rs-photo.c
===================================================================
--- trunk/src/rs-photo.c        2009-07-05 14:43:22 UTC (rev 2549)
+++ trunk/src/rs-photo.c        2009-07-05 14:49:45 UTC (rev 2550)
@@ -518,6 +518,8 @@
 
        /* Try preloaded first! */
        photo = rs_get_preloaded(filename);
+       if (photo)
+               return photo;
 
        /* If photo not found in cache, try to load it */
        if (!photo)


_______________________________________________
Rawstudio-commit mailing list
[email protected]
http://rawstudio.org/cgi-bin/mailman/listinfo/rawstudio-commit

Reply via email to