Logo Search packages:      
Sourcecode: inkscape version File versions

void SPDesktop::zoom_selection (  ) 

Zoom to selection.

Definition at line 852 of file desktop.cpp.

References Inkscape::Selection::bounds(), NR::Rect::dimensions(), selection, and set_display_area().

Referenced by Inkscape::ZoomVerb::perform().

{
    NR::Rect const d = selection->bounds();

    if (d.dimensions()[NR::X] < 0.1 || d.dimensions()[NR::Y] < 0.1) {
        return;
    }

    set_display_area(d, 10);
}


Generated by  Doxygen 1.6.0   Back to index