-rw-r--r-- | korganizer/koagenda.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/korganizer/koagenda.cpp b/korganizer/koagenda.cpp index d9d1283..1d4d6de 100644 --- a/korganizer/koagenda.cpp +++ b/korganizer/koagenda.cpp @@ -845,2 +845,3 @@ void KOAgenda::startItemAction(QPoint viewportPos) mCurrentCellY = gy; + bool allowResize = ( mActionItem->incidence()->typeID() != todoID ); @@ -848,3 +849,3 @@ void KOAgenda::startItemAction(QPoint viewportPos) int gridDistanceX = (x - gx * mGridSpacingX); - if (gridDistanceX < mResizeBorderWidth && + if ( allowResize && gridDistanceX < mResizeBorderWidth && mActionItem->cellX() == mCurrentCellX) { @@ -852,3 +853,3 @@ void KOAgenda::startItemAction(QPoint viewportPos) setCursor(sizeHorCursor); - } else if ((mGridSpacingX - gridDistanceX) < mResizeBorderWidth && + } else if ( allowResize && (mGridSpacingX - gridDistanceX) < mResizeBorderWidth && mActionItem->cellXWidth() == mCurrentCellX) { @@ -863,3 +864,2 @@ void KOAgenda::startItemAction(QPoint viewportPos) int gridDistanceY = (y - gy * mGridSpacingY); - bool allowResize = ( mActionItem->incidence()->typeID() != todoID ); if (allowResize && gridDistanceY < mResizeBorderWidth && |