diff options
| author | WizardOhio24 <rdmenzies2000@gmail.com> | 2019-01-26 12:34:38 +0000 |
|---|---|---|
| committer | Marc Jeanmougin <marcjeanmougin@free.fr> | 2019-02-11 10:43:57 +0000 |
| commit | eca63dcdbc425e44e353e93e8760a69e9b1f2d83 (patch) | |
| tree | a0543f620fe961b6a86aba36cc82a7e44fb40d12 /src/desktop.cpp | |
| parent | Bundle python-numpy and python-scour (diff) | |
| download | inkscape-eca63dcdbc425e44e353e93e8760a69e9b1f2d83.tar.gz inkscape-eca63dcdbc425e44e353e93e8760a69e9b1f2d83.zip | |
Added Feature: Recenter page in window, Ctrl+4 shortcut
Diffstat (limited to 'src/desktop.cpp')
| -rw-r--r-- | src/desktop.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/desktop.cpp b/src/desktop.cpp index ff40e5934..40305cba1 100644 --- a/src/desktop.cpp +++ b/src/desktop.cpp @@ -1064,6 +1064,14 @@ SPDesktop::zoom_selection() set_display_area(*d, 10); } +/** + * Centre Page in window, without zooming + */ +void SPDesktop::zoom_center_page() +{ + zoom_absolute_center_point(Geom::Point(doc()->getWidth().value("px")/2, doc()->getHeight().value("px")/2), this->current_zoom()); +} + /** * Performs a quick zoom into what the user is working on. |
