diff --git a/plugins/tools/defaulttool/defaulttool/SelectionDecorator.cpp b/plugins/tools/defaulttool/defaulttool/SelectionDecorator.cpp
index f2171a7..fe25f74 100644
--- a/plugins/tools/defaulttool/defaulttool/SelectionDecorator.cpp
+++ b/plugins/tools/defaulttool/defaulttool/SelectionDecorator.cpp
@@ -80,7 +80,7 @@ void SelectionDecorator::paint(QPainter &painter, const KoViewConverter &convert
bool editable = false;
- Q_FOREACH (KoShape *shape, KoShape::linearizeSubtree(selectedShapes)) {
+ Q_FOREACH (KoShape *shape, /*KoShape::linearizeSubtree*/(selectedShapes)) {
if (!haveOnlyOneEditableShape || !m_showStrokeFillGradientHandles) {
KisHandlePainterHelper helper =
KoShape::createHandlePainterHelper(&painter, shape, converter, m_handleRadius);