Code

fix invalid access warning
authorbuliabyak <buliabyak@users.sourceforge.net>
Tue, 6 Mar 2007 23:10:58 +0000 (23:10 +0000)
committerbuliabyak <buliabyak@users.sourceforge.net>
Tue, 6 Mar 2007 23:10:58 +0000 (23:10 +0000)
src/desktop-style.cpp

index 4f5ab982edaf33d1aa68a2cb8e5fbf2b4754b456..b29c32f7b211aa937579afcc4dd64f970467467c 100644 (file)
@@ -476,7 +476,7 @@ objects_query_fillstroke (GSList *objects, SPStyle *style_res, bool const isfill
 
         if (paint_res->set && paint_effectively_set && paint->type == SP_PAINT_TYPE_COLOR) {
 
-            gfloat d[3];
+            gfloat d[4];
             sp_color_get_rgb_floatv (&paint->value.color, d);
 
             // Check if this color is the same as previous