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

void SPDesktop::prev_zoom (  ) 

Revert back to previous zoom if possible.

Definition at line 840 of file desktop.cpp.

References Inkscape::MessageStack::flash(), Inkscape::UI::View::View::messageStack(), push_current_zoom(), and set_display_area().

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

    if (zooms_past == NULL) {
        messageStack()->flash(Inkscape::WARNING_MESSAGE, _("No previous zoom."));

    // push current zoom into forward zooms list
    push_current_zoom (&zooms_future);

    // restore previous zoom
    set_display_area (((NRRect *) zooms_past->data)->x0,
            ((NRRect *) zooms_past->data)->y0,
            ((NRRect *) zooms_past->data)->x1,
            ((NRRect *) zooms_past->data)->y1,
            0, false);

    // remove the just-added zoom from the past zooms list
    zooms_past = g_list_remove (zooms_past, ((NRRect *) zooms_past->data));

Generated by  Doxygen 1.6.0   Back to index