Code

fill in set methods to enable x/y/w/h
authorbuliabyak <buliabyak@users.sourceforge.net>
Fri, 20 Oct 2006 05:37:53 +0000 (05:37 +0000)
committerbuliabyak <buliabyak@users.sourceforge.net>
Fri, 20 Oct 2006 05:37:53 +0000 (05:37 +0000)
src/display/nr-filter.cpp

index 346e61686a3ffe460b511693602cfffa5b5d14b5..328b5c12aac2bf297c8e572c070bfdda8b4127ec 100644 (file)
@@ -325,14 +325,26 @@ void Filter::clear_primitives()
     _primitive_count = 0;
 }
 
-void Filter::set_x(SVGLength &lenght)
-{ /*write me*/ }
+void Filter::set_x(SVGLength &length)
+{ 
+  if (length._set)
+      _region_x = length;
+}
 void Filter::set_y(SVGLength &length)
-{ /*write me*/ }
+{
+  if (length._set)
+      _region_y = length;
+}
 void Filter::set_width(SVGLength &length)
-{ /*write me*/ }
+{
+  if (length._set)
+      _region_width = length;
+}
 void Filter::set_height(SVGLength &length)
-{ /*write me*/ }
+{ 
+  if (length._set)
+      _region_height = length;
+}
 
 } /* namespace NR */