diff --git a/ArchitectureColoredPainting/src/Editor/LayerWrapper.cpp b/ArchitectureColoredPainting/src/Editor/LayerWrapper.cpp index c914236..d5f28e7 100644 --- a/ArchitectureColoredPainting/src/Editor/LayerWrapper.cpp +++ b/ArchitectureColoredPainting/src/Editor/LayerWrapper.cpp @@ -88,11 +88,11 @@ void LayerWrapper::SimpleProperty::apply(PixelPath&cache) double centerY = cache.getBoundingRect().center().y(); //qDebug() << name << " " << cache.boundingRect().center(); //qDebug() << name << " " << cache.boundingRect(); - transform.translate(-centerX, -centerY); + transform.translate(centerX, centerY); transform.translate(offset.x(), offset.y()); transform.rotate(rotation); transform.scale(scale.x(), scale.y()); - transform.translate(centerX, centerY); + transform.translate(-centerX, -centerY); cache = cache.trans(transform); }