[Rawstudio-commit] r2748 - trunk/plugins/lensfun

Anders Kvist anders at kvistmail.dk
Mon Nov 16 23:52:22 CET 2009


Author: akv
Date: 2009-11-16 23:52:21 +0100 (Mon, 16 Nov 2009)
New Revision: 2748

Modified:
   trunk/plugins/lensfun/lensfun.c
Log:
Fixing nullpointer.

Modified: trunk/plugins/lensfun/lensfun.c
===================================================================
--- trunk/plugins/lensfun/lensfun.c	2009-11-16 21:10:25 UTC (rev 2747)
+++ trunk/plugins/lensfun/lensfun.c	2009-11-16 22:52:21 UTC (rev 2748)
@@ -405,7 +405,7 @@
 			model = rs_lens_get_lensfun_model(lensfun->lens);
 			make = rs_lens_get_lensfun_make(lensfun->lens);
 
-			lenses = lf_db_find_lenses_hd(lensfun->ldb, cameras[0], make, model, 0);
+			lenses = lf_db_find_lenses_hd(lensfun->ldb, lensfun->selected_camera, make, model, 0);
 		}
 
 		if (!lenses)




More information about the Rawstudio-commit mailing list