~centralelyon2010/inkscape/imagelinks2

« back to all changes in this revision

Viewing changes to src/shape-editor.cpp

  • Committer: cilix42
  • Date: 2008-09-18 17:48:42 UTC
  • Revision ID: cilix42@users.sourceforge.net-20080918174842-1ad33a7d7gqhv2hq
Next roud of NR ==> Geom conversion

Show diffs side-by-side

added added

removed removed

Lines of Context:
381
381
        (( !SP_OBJECT_STYLE(item)->stroke.isNone() ?
382
382
           desktop->current_zoom() *
383
383
           SP_OBJECT_STYLE (item)->stroke_width.computed * 0.5 *
384
 
           NR::expansion(sp_item_i2d_affine(item))
 
384
           to_2geom(sp_item_i2d_affine(item)).descrim()
385
385
         : 0.0)
386
 
         + prefs_get_int_attribute_limited("options.dragtolerance", "value", 0, 0, 100)) /NR::expansion(sp_item_i2d_affine(item)); 
387
 
    bool close = (NR::L2 (delta) < stroke_tolerance);
 
386
         + prefs_get_int_attribute_limited("options.dragtolerance", "value", 0, 0, 100)) / to_2geom(sp_item_i2d_affine(item)).descrim();
 
387
    bool close = (Geom::L2 (delta) < stroke_tolerance);
388
388
 
389
389
    if (remember && close) {
390
390
        // calculate index for nodepath's representation.
475
475
    }
476
476
}
477
477
 
478
 
void ShapeEditor::select_rect(NR::Rect const &rect, bool add) {
 
478
void ShapeEditor::select_rect(Geom::Rect const &rect, bool add) {
479
479
    if (this->nodepath) {
480
480
        sp_nodepath_select_rect(this->nodepath, rect, add);
481
481
    }