summaryrefslogtreecommitdiffstats
path: root/src/sp-rect.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/sp-rect.cpp')
-rw-r--r--src/sp-rect.cpp16
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 {