Logo Search packages:      
Sourcecode: inkscape version File versions  Download package

void SPDesktop::zoom_page (  ) 

Set display area to origin and current document dimensions.

Definition at line 1014 of file desktop.cpp.

References Inkscape::UI::View::View::doc(), Geom::D2< Interval >::minExtent(), and set_display_area().

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

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

    if (d.minExtent() < 1.0) {
        return;
    }

    set_display_area(d, 10);
}


Generated by  Doxygen 1.6.0   Back to index