~centralelyon2010/inkscape/imagelinks2

« back to all changes in this revision

Viewing changes to src/connector-context.cpp

  • Committer: Ted Gould
  • Date: 2008-11-21 05:24:08 UTC
  • Revision ID: ted@canonical.com-20081121052408-tilucis2pjrrpzxx
MergeĀ fromĀ fe-moved

Show diffs side-by-side

added added

removed removed

Lines of Context:
602
602
 
603
603
    if (connector_within_tolerance) {
604
604
        gint const tolerance = prefs->getIntLimited("/options/dragtolerance/value", 0, 0, 100);
605
 
        if ( NR::LInfty( event_w - connector_drag_origin_w ) < tolerance ) {
 
605
        if ( Geom::LInfty( event_w - connector_drag_origin_w ) < tolerance ) {
606
606
            return FALSE;   // Do not drag if we're within tolerance from origin.
607
607
        }
608
608
    }
1149
1149
    }
1150
1150
 
1151
1151
 
1152
 
    boost::optional<Geom::Rect> bbox = sp_item_bbox_desktop(cc->active_shape);
 
1152
    Geom::OptRect bbox = sp_item_bbox_desktop(cc->active_shape);
1153
1153
    if (bbox) {
1154
1154
        Geom::Point center = bbox->midpoint();
1155
1155
        sp_knot_set_position(cc->connpthandle, center, 0);