Author: abrander
Date: 2009-07-04 19:44:01 +0200 (Sat, 04 Jul 2009)
New Revision: 2532
Modified:
trunk/plugins/resample/resample.c
Log:
Check for previous filter before accessing in recalculate_dimensions().
Modified: trunk/plugins/resample/resample.c
===================================================================
--- trunk/plugins/resample/resample.c 2009-07-04 16:06:18 UTC (rev 2531)
+++ trunk/plugins/resample/resample.c 2009-07-04 17:44:01 UTC (rev 2532)
@@ -206,7 +206,7 @@
{
RSFilterChangedMask mask = 0;
gint new_width, new_height;
- if (resample->bounding_box)
+ if (resample->bounding_box && RS_FILTER(resample)->previous)
{
new_width = rs_filter_get_width(RS_FILTER(resample)->previous);
new_height =
rs_filter_get_height(RS_FILTER(resample)->previous);
_______________________________________________
Rawstudio-commit mailing list
[email protected]
http://rawstudio.org/cgi-bin/mailman/listinfo/rawstudio-commit