Author: abrander
Date: 2010-05-29 18:10:15 +0200 (Sat, 29 May 2010)
New Revision: 3407

Modified:
   trunk/librawstudio/rs-filter-response.c
Log:
Added basic argument checking in rs_filter_response_get_width() and 
rs_filter_response_get_height().

Modified: trunk/librawstudio/rs-filter-response.c
===================================================================
--- trunk/librawstudio/rs-filter-response.c     2010-05-29 16:08:03 UTC (rev 
3406)
+++ trunk/librawstudio/rs-filter-response.c     2010-05-29 16:10:15 UTC (rev 
3407)
@@ -317,6 +317,8 @@
 gint
 rs_filter_response_get_width(const RSFilterResponse *filter_response)
 {
+       g_assert(RS_IS_FILTER_RESPONSE(filter_response));
+
        if (filter_response->width > -1)
                return filter_response->width;
        else if (filter_response->image)
@@ -335,6 +337,8 @@
 gint
 rs_filter_response_get_height(const RSFilterResponse *filter_response)
 {
+       g_assert(RS_IS_FILTER_RESPONSE(filter_response));
+
        if (filter_response->height > -1)
                return filter_response->height;
        else if (filter_response->image)


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

Reply via email to