+ if(ext=="svg"){//I don't like it, but worse is nothing
+ Layer::Handle _new_layer(add_layer_to("PasteCanvas",get_canvas()));
+ Layer::Handle _aux_layer(add_layer_to("svg_layer",get_canvas()));
+ if(_aux_layer){
+ _aux_layer->set_param("filename",ValueBase(filename));
+ _new_layer->set_param("canvas",ValueBase(_aux_layer->get_param("canvas")));
+ //remove aux layer
+ Action::Handle action(Action::LayerRemove::create());
+ assert(action);
+ if(!action)
+ return 0;
+ action->set_param("canvas",get_canvas());
+ action->set_param("canvas_interface",etl::loose_handle<CanvasInterface>(this));
+ action->set_param("layer",_aux_layer);
+ if(!action->is_ready()){
+ get_ui_interface()->error(_("Action Not Ready"));
+ return 0;
+ }
+ if(!get_instance()->perform_action(action)){
+ get_ui_interface()->error(_("Action Failed."));
+ return 0;
+ }
+ }
+ signal_layer_new_description()(_new_layer,filename);
+ return true;
+ }
+