summaryrefslogtreecommitdiffstats
path: root/src/2geom/path.cpp
diff options
context:
space:
mode:
authorJohan B. C. Engelen <jbc.engelen@swissonline.ch>2014-04-06 21:54:56 +0000
committerJohan B. C. Engelen <j.b.c.engelen@alumnus.utwente.nl>2014-04-06 21:54:56 +0000
commitaa5ee7d5a885df6cb4a31b1edaf1a35cf32b686e (patch)
tree47a413f9084ffb803c4c78d281532f7fa3ca4e3a /src/2geom/path.cpp
parentnoop: improve code style in sp-lpe-item.cpp (diff)
downloadinkscape-aa5ee7d5a885df6cb4a31b1edaf1a35cf32b686e.tar.gz
inkscape-aa5ee7d5a885df6cb4a31b1edaf1a35cf32b686e.zip
temporary fix for bug in 2geom, the bug manifests itself in LPE Construct grid
(bzr r13273)
Diffstat (limited to 'src/2geom/path.cpp')
-rw-r--r--src/2geom/path.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/2geom/path.cpp b/src/2geom/path.cpp
index 5797f475c..fc4d72028 100644
--- a/src/2geom/path.cpp
+++ b/src/2geom/path.cpp
@@ -104,12 +104,14 @@ Path &Path::operator*=(Affine const &m) {
}
Path &Path::operator*=(Translate const &m) {
+/* Somehow there is something wrong here, LPE Construct grid fails with this code
unshare();
Sequence::iterator last = get_curves().end() - 1;
Sequence::iterator it;
Point prev;
for (it = get_curves().begin() ; it != last ; ++it) {
- *(const_cast<Curve*>(&**it)) *= m;
+ //*(const_cast<Curve*>(&**it)) *= m;
+ const_cast<Curve*>(it->get())->operator*=(m);
if ( it != get_curves().begin() && (*it)->initialPoint() != prev ) {
THROW_CONTINUITYERROR();
}
@@ -124,6 +126,8 @@ Path &Path::operator*=(Translate const &m) {
}
}
return *this;
+*/
+ return this->operator*=(static_cast<Affine>(m));
}
std::vector<double>