Commit d2337d22 authored by Carlos Licea's avatar Carlos Licea

Adapt the defaultTools to the new properties of size and position

protected.

svn path=/trunk/koffice/; revision=1157449
parent 332202fa
......@@ -40,7 +40,7 @@ ShapeMoveStrategy::ShapeMoveStrategy(KoToolBase *tool, const QPointF &clicked)
QList<KoShape*> selectedShapes = tool->canvas()->shapeManager()->selection()->selectedShapes(KoFlake::TopLevelSelection);
QRectF boundingRect;
foreach(KoShape *shape, selectedShapes) {
if (! shape->isEditable())
if (! shape->isEditable() || shape->isPositionProtected())
continue;
m_selectedShapes << shape;
m_previousPositions << shape->position();
......
......@@ -40,7 +40,7 @@ ShapeResizeStrategy::ShapeResizeStrategy(KoToolBase *tool,
Q_ASSERT(tool->canvas()->shapeManager()->selection()->count() > 0);
QList<KoShape*> selectedShapes = tool->canvas()->shapeManager()->selection()->selectedShapes(KoFlake::StrippedSelection);
foreach(KoShape *shape, selectedShapes) {
if ( ! shape->isEditable() )
if ( ! shape->isEditable() || shape->isSizeProtected())
continue;
m_selectedShapes << shape;
m_startPositions << shape->position();
......
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