Commit d06cd3af authored by Dmitry Kazakov's avatar Dmitry Kazakov

Don't snap to the resized shape when resizing it

parent d446aea4
......@@ -58,7 +58,7 @@ ShapeMoveStrategy::ShapeMoveStrategy(KoToolBase *tool, const QPointF &clicked)
KoSelection *selection = m_canvas->shapeManager()->selection();
m_initialOffset = selection->absolutePosition(anchor) - m_start;
m_canvas->snapGuide()->setIgnoredShapes(KoShape::linearizeSubtree(selection->selectedShapes()));
m_canvas->snapGuide()->setIgnoredShapes(KoShape::linearizeSubtree(m_selectedShapes));
tool->setStatusText(i18n("Press Shift to hold x- or y-position."));
}
......
......@@ -109,6 +109,7 @@ ShapeResizeStrategy::ShapeResizeStrategy(KoToolBase *tool, const QPointF &clicke
}
tool->setStatusText(i18n("Press CTRL to resize from center."));
tool->canvas()->snapGuide()->setIgnoredShapes(KoShape::linearizeSubtree(m_selectedShapes));
}
ShapeResizeStrategy::~ShapeResizeStrategy()
......
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