summaryrefslogtreecommitdiffabout
path: root/korganizer
Side-by-side diff
Diffstat (limited to 'korganizer') (more/less context) (show whitespace changes)
-rw-r--r--korganizer/koagenda.cpp6
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
@@ -843,14 +843,15 @@ void KOAgenda::startItemAction(QPoint viewportPos)
mStartCellY = gy;
mCurrentCellX = gx;
mCurrentCellY = gy;
+ bool allowResize = ( mActionItem->incidence()->typeID() != todoID );
if (mAllDayMode) {
int gridDistanceX = (x - gx * mGridSpacingX);
- if (gridDistanceX < mResizeBorderWidth &&
+ if ( allowResize && gridDistanceX < mResizeBorderWidth &&
mActionItem->cellX() == mCurrentCellX) {
mActionType = RESIZELEFT;
setCursor(sizeHorCursor);
- } else if ((mGridSpacingX - gridDistanceX) < mResizeBorderWidth &&
+ } else if ( allowResize && (mGridSpacingX - gridDistanceX) < mResizeBorderWidth &&
mActionItem->cellXWidth() == mCurrentCellX) {
mActionType = RESIZERIGHT;
setCursor(sizeHorCursor);
@@ -861,7 +862,6 @@ void KOAgenda::startItemAction(QPoint viewportPos)
}
} else {
int gridDistanceY = (y - gy * mGridSpacingY);
- bool allowResize = ( mActionItem->incidence()->typeID() != todoID );
if (allowResize && gridDistanceY < mResizeBorderWidth &&
mActionItem->cellYTop() == mCurrentCellY &&
!mActionItem->firstMultiItem()) {