summaryrefslogtreecommitdiffstats
path: root/src/viewbox.cpp
diff options
context:
space:
mode:
authorTavmjong Bah <tavmjong@free.fr>2017-03-13 14:22:22 +0000
committertavmjong-free <tavmjong@free.fr>2017-03-13 14:22:22 +0000
commit014489163050d8abe9e5c4949fb80f3c21b1c17b (patch)
tree7cbeb87aa023d563986b32f65fd500c6072ee86a /src/viewbox.cpp
parentTwo Extensions for converting objects to paths before exporting. (Bug 1662531) (diff)
downloadinkscape-014489163050d8abe9e5c4949fb80f3c21b1c17b.tar.gz
inkscape-014489163050d8abe9e5c4949fb80f3c21b1c17b.zip
Replace rectangle based zooming by affine based zooming.
This allows a rotation to be included in the drawing to window mapping. General code cleanup. Added documentation. Any change to zooming behavior is probably a bug. (bzr r15592)
Diffstat (limited to 'src/viewbox.cpp')
-rw-r--r--src/viewbox.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/viewbox.cpp b/src/viewbox.cpp
index ebfc04d8a..1fa33117a 100644
--- a/src/viewbox.cpp
+++ b/src/viewbox.cpp
@@ -268,7 +268,7 @@ void SPViewBox::apply_viewbox(const Geom::Rect& in, double scale_none) {
center_rotation *= Geom::Rotate(Geom::rad_from_deg(this->angle - this->previous_angle));
center_rotation *= Geom::Translate(page_center * vbt);
view_center = desktop->dt2doc(view_center * center_rotation);
- desktop->zoom_relative(view_center[Geom::X], view_center[Geom::Y], 1.0);
+ desktop->zoom_relative_center_point(view_center, 1.0);
this->rotated = false;
}
}