diff options
| author | Martin Owens <doctormo@gmail.com> | 2019-03-06 01:58:30 +0000 |
|---|---|---|
| committer | Martin Owens <doctormo@gmail.com> | 2019-03-06 01:58:30 +0000 |
| commit | e5bf2580b421854298c4d2eaa62f9324ed03f81c (patch) | |
| tree | 574232d8b2fa35b08210b337f6a868dfca4f2b09 /src/desktop.cpp | |
| parent | Revert modal fix to fix #108 (diff) | |
| parent | Changed tabs to spaces (diff) | |
| download | inkscape-e5bf2580b421854298c4d2eaa62f9324ed03f81c.tar.gz inkscape-e5bf2580b421854298c4d2eaa62f9324ed03f81c.zip | |
Merge addition of center on page button
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 3f40e7e75..ebc3e5591 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. |
