Commit f9539361 authored by Carlos Licea's avatar Carlos Licea

Revert "Adapt the defaultTools to the new properties of size and position"

This reverts commit 1469f75d7dc9d645d9c584c836146f8c25fbbaa3.

svn path=/trunk/koffice/; revision=1157461
parent 6f9824bf
......@@ -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() || shape->isPositionProtected())
if (! shape->isEditable())
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() || shape->isSizeProtected())
if ( ! shape->isEditable() )
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