[Rawstudio-commit] r3230 - trunk/plugins/crop

Klaus Post klauspost at gmail.com
Sun Feb 14 17:54:20 CET 2010


Author: post
Date: 2010-02-14 17:54:19 +0100 (Sun, 14 Feb 2010)
New Revision: 3230

Modified:
   trunk/plugins/crop/crop.c
Log:
Crop: Check previous before using it.

Modified: trunk/plugins/crop/crop.c
===================================================================
--- trunk/plugins/crop/crop.c	2010-02-14 16:52:21 UTC (rev 3229)
+++ trunk/plugins/crop/crop.c	2010-02-14 16:54:19 UTC (rev 3230)
@@ -238,6 +238,8 @@
 calc(RSCrop *crop)
 {
 	RSFilter *filter = RS_FILTER(crop);
+	if (!filter->previous)
+		return;
 	crop->scale = 1.0f;
 	rs_filter_get_recursive(RS_FILTER(crop), "scale", &crop->scale, NULL);
 




More information about the Rawstudio-commit mailing list