index 729b53cfd4f5c3a009b7b2fb37acf031fd1a55c0..d4b35b261baec5cb49bb89bbdac225bb8bd07179 100644 (file)
bounding_area = Geom::Rect( Geom::Point(0,0),
Geom::Point(sp_document_width(doc), sp_document_height(doc)) );
} else {
- boost::optional<NR::Rect> bounds = selection->bounds();
+ Geom::OptRect bounds = selection->bounds();
if (bounds) {
- bounding_area = to_2geom(*bounds);
+ bounding_area = *bounds;
}
gdouble doc_height = sp_document_height(document->doc());
@@ -124,6 +124,7 @@ Grid::effect (Inkscape::Extension::Effect *module, Inkscape::UI::View::View *doc
path->setAttribute("style", style.c_str());
current_layer->appendChild(path);
+ Inkscape::GC::release(path);
return;
}