Code

fixing small bug on feMorphology
authorjucablues <jucablues@users.sourceforge.net>
Thu, 9 Aug 2007 15:17:08 +0000 (15:17 +0000)
committerjucablues <jucablues@users.sourceforge.net>
Thu, 9 Aug 2007 15:17:08 +0000 (15:17 +0000)
src/display/nr-filter-morphology.cpp
src/sp-fecolormatrix.cpp

index bbf26c87cba000485311174779972185f3119fe2..07b1b1d94b4403156de8252b74357314132bf730 100644 (file)
@@ -60,7 +60,7 @@ int FilterMorphology::render(FilterSlot &slot, Matrix const &trans) {
                     if(in_data[4*(i + w*j)+3]<amin) amin = in_data[4*(i + w*j)+3];                    
                 }
             }
-            if (Operator==MORPHOLOGY_OPERATOR_ERODE){
+            if (Operator==MORPHOLOGY_OPERATOR_DILATE){
                 out_data[4*(x + w*y)]=rmax;
                 out_data[4*(x + w*y)+1]=gmax;
                 out_data[4*(x + w*y)+2]=bmax;
index e158839baeb247e90b04f9f87f381138538cee27..d8d931db1c3165fe6e6b05851b2b8ffbc94fec5b 100644 (file)
@@ -6,8 +6,10 @@
  */
 /*
  * Authors:
+ *   Felipe Sanches <felipe.sanches@gmail.com>
  *   hugo Rodrigues <haa.rodrigues@gmail.com>
  *
+ * Copyright (C) 2007 Felipe C. da S. Sanches
  * Copyright (C) 2006 Hugo Rodrigues
  *
  * Released under GNU GPL, read the file 'COPYING' for more information