diff options
| author | Alvin Penner <penner@vaxxine.com> | 2015-03-04 13:48:54 +0000 |
|---|---|---|
| committer | apenner <penner@vaxxine.com> | 2015-03-04 13:48:54 +0000 |
| commit | aa051f8b327c54c75d9f8b9ebffabf0aa92af8d8 (patch) | |
| tree | 8f70ca3a4d56b1643f2f62dc1faf57a15a2a4447 /src/sp-rect.cpp | |
| parent | Extensions. Fix for Bug #1426684 (INX optiongroup does not trigger a refresh). (diff) | |
| download | inkscape-aa051f8b327c54c75d9f8b9ebffabf0aa92af8d8.tar.gz inkscape-aa051f8b327c54c75d9f8b9ebffabf0aa92af8d8.zip | |
scale spinboxes for rectangle toolbar. (Bug 307656)
Fixed bugs:
- https://launchpad.net/bugs/307656
(bzr r13964)
Diffstat (limited to 'src/sp-rect.cpp')
| -rw-r--r-- | src/sp-rect.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
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<Inkscape::SnapCandidatePoint> &p, Inkscape::SnapPreferences const *snapprefs) const { |
