X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=src%2Finterface.cpp;h=0259ecb6602dd52d7f62c0f53e5a7cded9f1d31e;hb=0f51f94e09af3ab07d55c057a09b44f0790599b9;hp=dc583a645fe373e2c7fea4777b0372fdea776cc5;hpb=e5fac5c1e24b5cf439a9e667a7c577a49dd1cff7;p=inkscape.git diff --git a/src/interface.cpp b/src/interface.cpp index dc583a645..0259ecb66 100644 --- a/src/interface.cpp +++ b/src/interface.cpp @@ -1180,7 +1180,7 @@ sp_ui_drag_data_received(GtkWidget *widget, Path *livarot_path = Path_for_item(item, true, true); livarot_path->ConvertWithBackData(0.04); - NR::Maybe position = get_nearest_position_on_Path(livarot_path, button_doc); + boost::optional position = get_nearest_position_on_Path(livarot_path, button_doc); if (position) { NR::Point nearest = get_point_on_Path(livarot_path, position->piece, position->t); NR::Point delta = nearest - button_doc; @@ -1189,7 +1189,7 @@ sp_ui_drag_data_received(GtkWidget *widget, ( !SP_OBJECT_STYLE(item)->stroke.isNone() ? desktop->current_zoom() * SP_OBJECT_STYLE (item)->stroke_width.computed * - NR::expansion(from_2geom(sp_item_i2d_affine(item))) * 0.5 + NR::expansion(sp_item_i2d_affine(item)) * 0.5 : 0.0) + prefs_get_int_attribute_limited("options.dragtolerance", "value", 0, 0, 100); @@ -1252,7 +1252,7 @@ sp_ui_drag_data_received(GtkWidget *widget, int const saved_pref = prefs_get_int_attribute("options.transform", "pattern", 1); prefs_set_int_attribute("options.transform", "pattern", 1); sp_document_ensure_up_to_date(sp_desktop_document(desktop)); - NR::Maybe sel_bbox = selection->bounds(); + boost::optional sel_bbox = selection->bounds(); if (sel_bbox) { NR::Point m( desktop->point() - sel_bbox->midpoint() ); sp_selection_move_relative(selection, m);