[Rawstudio-commit] r872 - trunk/src

Anders Brander anders at brander.dk
Wed Oct 18 21:52:02 CEST 2006


Author: abrander
Date: 2006-10-18 21:52:01 +0200 (Wed, 18 Oct 2006)
New Revision: 872

Modified:
   trunk/src/rawstudio.c
Log:
Added some sanity-checking to rs_crop_*().

Modified: trunk/src/rawstudio.c
===================================================================
--- trunk/src/rawstudio.c	2006-10-18 19:41:46 UTC (rev 871)
+++ trunk/src/rawstudio.c	2006-10-18 19:52:01 UTC (rev 872)
@@ -1335,6 +1335,7 @@
 void
 rs_crop_start(RS_BLOB *rs)
 {
+	if (!rs->photo) return;
 	rs->roi.x1 = 20;
 	rs->roi.y1 = 20;
 	rs->roi.x2 = rs->photo->input->w-20;
@@ -1369,6 +1370,7 @@
 void
 rs_crop_uncrop(RS_BLOB *rs)
 {
+	if (!rs->photo) return;
 	rs_image16_uncrop(&rs->photo->input);
 	update_preview(rs, FALSE, TRUE);
 	return;




More information about the Rawstudio-commit mailing list