diff options
| author | Jabier Arraiza Cenoz <jabier.arraiza@marker.es> | 2016-10-14 23:48:35 +0000 |
|---|---|---|
| committer | jabiertxof <info@marker.es> | 2016-10-14 23:48:35 +0000 |
| commit | c57802d04d26ecf8618ffe8f1f9a90c79d36ed92 (patch) | |
| tree | 5a4db49f7384a1d081419171721157bacd96593a /src/viewbox.cpp | |
| parent | Update to trunk (diff) | |
| download | inkscape-c57802d04d26ecf8618ffe8f1f9a90c79d36ed92.tar.gz inkscape-c57802d04d26ecf8618ffe8f1f9a90c79d36ed92.zip | |
Change from slider to spin
(bzr r15142.1.13)
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 15b5b19c4..ebfc04d8a 100644 --- a/src/viewbox.cpp +++ b/src/viewbox.cpp @@ -249,7 +249,6 @@ void SPViewBox::apply_viewbox(const Geom::Rect& in, double scale_none) { vbt[5] = y - scale_y * this->viewBox.top(); /* Append viewbox and turn transformation */ Geom::Point page_center = this->viewBox.midpoint(); - Geom::Affine center_rotation = Geom::identity(); SPDesktop * desktop = SP_ACTIVE_DESKTOP; if (this->angle > 0.0 || this->angle < 0.0 ) { //!0 if (desktop) { @@ -264,6 +263,7 @@ void SPViewBox::apply_viewbox(const Geom::Rect& in, double scale_none) { if (desktop && this->rotated) { Geom::Rect view = desktop->get_display_area(); Geom::Point view_center = desktop->doc2dt(view.midpoint()); + Geom::Affine center_rotation = Geom::identity(); center_rotation *= Geom::Translate(page_center * vbt).inverse(); center_rotation *= Geom::Rotate(Geom::rad_from_deg(this->angle - this->previous_angle)); center_rotation *= Geom::Translate(page_center * vbt); |
