SVN commit 1180305 by nikolaus: Allow sorting when only one column/row is selected. M +4 -2 SortDialog.cpp --- trunk/koffice/kspread/dialogs/SortDialog.cpp #1180304:1180305 @@ -440,10 +440,12 @@ } } - if (d->mainWidget.m_sortHorizontal->isEnabled()) { + // create column indices, if data can be sorted vertically + if (d->mainWidget.m_sortVertical->isEnabled()) { d->createAvailableIndices(region, Qt::Horizontal); } - if (d->mainWidget.m_sortVertical->isEnabled()) { + // create row indices, if data can be sorted horizontally + if (d->mainWidget.m_sortHorizontal->isEnabled()) { d->createAvailableIndices(region, Qt::Vertical); } }