Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Commit e47a5d10 authored by Dmitry Kazakov's avatar Dmitry Kazakov

Revert to an ugly 5 line construction doing the work of one-liner

Ask Boud why.
parent 4b48ec63
......@@ -196,7 +196,11 @@ void KisImage::nodeChanged(KisNode* node)
KisSelectionSP KisImage::globalSelection() const
{
KisSelectionMaskSP selectionMask = m_d->rootLayer->selectionMask();
return selectionMask ? selectionMask->selection() : 0;
if (selectionMask) {
return selectionMask->selection();
} else {
return 0;
}
}
void KisImage::setGlobalSelection(KisSelectionSP globalSelection)
......
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