Code

Fixed rendering glitch in bicubic scaler
[inkscape.git] / src / filter-chemistry.cpp
index d9bf33d60ca1a3489adc7591e3aea7827e4fa3f3..e0dbee9ea8b8b2ef41d92ba78038c0c4e0faa2b1 100644 (file)
@@ -135,6 +135,8 @@ filter_add_primitive(SPFilter *filter, const NR::FilterPrimitiveType type)
         case NR::NR_FILTER_COMPOSITE:
             break;
         case NR::NR_FILTER_CONVOLVEMATRIX:
+            repr->setAttribute("order", "3 3");
+            repr->setAttribute("kernelMatrix", "0 0 0 0 0 0 0 0 0");
             break;
         case NR::NR_FILTER_DIFFUSELIGHTING:
             break;
@@ -143,7 +145,7 @@ filter_add_primitive(SPFilter *filter, const NR::FilterPrimitiveType type)
         case NR::NR_FILTER_FLOOD:
             break;
         case NR::NR_FILTER_GAUSSIANBLUR:
-            repr->setAttribute("stddeviation", "1");
+            repr->setAttribute("stdDeviation", "1");
             break;
         case NR::NR_FILTER_IMAGE:
             break;