Logo Search packages:      
Sourcecode: inkscape version File versions

void SPDesktop::zoom_page (  ) 

Set display area to origin and current document dimensions.

Definition at line 818 of file desktop.cpp.

References NR::Rect::dimensions(), Inkscape::UI::View::View::doc(), and set_display_area().

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

{
    NR::Rect d(NR::Point(0, 0),
               NR::Point(sp_document_width(doc()), sp_document_height(doc())));

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

    set_display_area(d, 10);
}


Generated by  Doxygen 1.6.0   Back to index