Commit a06049fc authored by Jan Hambrecht's avatar Jan Hambrecht

fix setAbsolutePosition too


svn path=/trunk/koffice/; revision=683022
parent 9fa02824
......@@ -367,7 +367,9 @@ QPointF KoShape::absolutePosition(KoFlake::Position anchor) const {
void KoShape::setAbsolutePosition(QPointF newPosition, KoFlake::Position anchor) {
QPointF currentAbsPosition = absolutePosition( anchor );
QPointF translate = newPosition - currentAbsPosition;
d->localMatrix.translate( translate.x(), translate.y() );
QMatrix translateMatrix;
translateMatrix.translate( translate.x(), translate.y() );
d->localMatrix = d->localMatrix * translateMatrix;
notifyChanged();
d->shapeChanged(PositionChanged);
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment