index 144f4720d92d7d7970ee51967712f951f86b02e9..cb9c031aa79e06d44ef6fc3ec30aaff0be0696b9 100644 (file)
#include <2geom/path.h>
#include <2geom/transforms.h>
-#include "nodepath.h"
-
namespace Inkscape {
namespace LivePathEffect {
LPEConstructGrid::LPEConstructGrid(LivePathEffectObject *lpeobject) :
Effect(lpeobject),
- nr_x(_("Size X"), _("The size of the grid in X direction."), "nr_x", &wr, this, 5),
- nr_y(_("Size Y"), _("The size of the grid in Y direction."), "nr_y", &wr, this, 5)
+ nr_x(_("Size _X:"), _("The size of the grid in X direction."), "nr_x", &wr, this, 5),
+ nr_y(_("Size _Y:"), _("The size of the grid in Y direction."), "nr_y", &wr, this, 5)
{
registerParameter( dynamic_cast<Parameter *>(&nr_x) );
registerParameter( dynamic_cast<Parameter *>(&nr_y) );
nr_x.param_make_integer();
nr_y.param_make_integer();
- nr_x.param_set_range(1, NR_HUGE);
- nr_y.param_set_range(1, NR_HUGE);
+ nr_x.param_set_range(1, 1e10);
+ nr_y.param_set_range(1, 1e10);
}
LPEConstructGrid::~LPEConstructGrid()
}
}
-void
-LPEConstructGrid::setup_nodepath(Inkscape::NodePath::Path *np)
-{
- Effect::setup_nodepath(np);
- sp_nodepath_make_straight_path(np);
-}
-
} //namespace LivePathEffect
} /* namespace Inkscape */