diff options
| author | Tavmjong Bah <tavmjong@free.fr> | 2017-03-13 14:22:22 +0000 |
|---|---|---|
| committer | tavmjong-free <tavmjong@free.fr> | 2017-03-13 14:22:22 +0000 |
| commit | 014489163050d8abe9e5c4949fb80f3c21b1c17b (patch) | |
| tree | 7cbeb87aa023d563986b32f65fd500c6072ee86a /src/viewbox.cpp | |
| parent | Two Extensions for converting objects to paths before exporting. (Bug 1662531) (diff) | |
| download | inkscape-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.cpp | 2 |
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; } } |
