summaryrefslogtreecommitdiffstats
path: root/src/desktop.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/desktop.cpp')
-rw-r--r--src/desktop.cpp8
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.