From aa051f8b327c54c75d9f8b9ebffabf0aa92af8d8 Mon Sep 17 00:00:00 2001 From: Alvin Penner Date: Wed, 4 Mar 2015 08:48:54 -0500 Subject: scale spinboxes for rectangle toolbar. (Bug 307656) Fixed bugs: - https://launchpad.net/bugs/307656 (bzr r13964) --- src/sp-rect.cpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'src/sp-rect.cpp') diff --git a/src/sp-rect.cpp b/src/sp-rect.cpp index 361d3c8c0..30571a8dd 100644 --- a/src/sp-rect.cpp +++ b/src/sp-rect.cpp @@ -342,7 +342,7 @@ void SPRect::setVisibleRx(gdouble rx) { this->rx.computed = rx / SPRect::vectorStretch( Geom::Point(this->x.computed + 1, this->y.computed), Geom::Point(this->x.computed, this->y.computed), - this->transform); + this->i2doc_affine()); this->rx._set = true; } @@ -358,7 +358,7 @@ void SPRect::setVisibleRy(gdouble ry) { this->ry.computed = ry / SPRect::vectorStretch( Geom::Point(this->x.computed, this->y.computed + 1), Geom::Point(this->x.computed, this->y.computed), - this->transform); + this->i2doc_affine()); this->ry._set = true; } @@ -374,7 +374,7 @@ gdouble SPRect::getVisibleRx() const { return this->rx.computed * SPRect::vectorStretch( Geom::Point(this->x.computed + 1, this->y.computed), Geom::Point(this->x.computed, this->y.computed), - this->transform); + this->i2doc_affine()); } gdouble SPRect::getVisibleRy() const { @@ -385,7 +385,7 @@ gdouble SPRect::getVisibleRy() const { return this->ry.computed * SPRect::vectorStretch( Geom::Point(this->x.computed, this->y.computed + 1), Geom::Point(this->x.computed, this->y.computed), - this->transform); + this->i2doc_affine()); } Geom::Rect SPRect::getRect() const { @@ -436,7 +436,7 @@ void SPRect::setVisibleWidth(gdouble width) { this->width.computed = width / SPRect::vectorStretch( Geom::Point(this->x.computed + 1, this->y.computed), Geom::Point(this->x.computed, this->y.computed), - this->transform); + this->i2doc_affine()); this->width._set = true; this->updateRepr(); @@ -446,7 +446,7 @@ void SPRect::setVisibleHeight(gdouble height) { this->height.computed = height / SPRect::vectorStretch( Geom::Point(this->x.computed, this->y.computed + 1), Geom::Point(this->x.computed, this->y.computed), - this->transform); + this->i2doc_affine()); this->height._set = true; this->updateRepr(); @@ -460,7 +460,7 @@ gdouble SPRect::getVisibleWidth() const { return this->width.computed * SPRect::vectorStretch( Geom::Point(this->x.computed + 1, this->y.computed), Geom::Point(this->x.computed, this->y.computed), - this->transform); + this->i2doc_affine()); } gdouble SPRect::getVisibleHeight() const { @@ -471,7 +471,7 @@ gdouble SPRect::getVisibleHeight() const { return this->height.computed * SPRect::vectorStretch( Geom::Point(this->x.computed, this->y.computed + 1), Geom::Point(this->x.computed, this->y.computed), - this->transform); + this->i2doc_affine()); } void SPRect::snappoints(std::vector &p, Inkscape::SnapPreferences const *snapprefs) const { -- cgit v1.2.3