author | zautrix <zautrix> | 2005-11-30 07:17:43 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2005-11-30 07:17:43 (UTC) |
commit | 14bd7cc7412ffdbca09e1cd63a230222a3fbfd53 (patch) (side-by-side diff) | |
tree | 9255ef94ff9bdf2429f19e68c6ab5273878afdf5 /korganizer/koagenda.cpp | |
parent | 29c3ed5181b8a33aac73eec90956819b71641048 (diff) | |
download | kdepimpi-14bd7cc7412ffdbca09e1cd63a230222a3fbfd53.zip kdepimpi-14bd7cc7412ffdbca09e1cd63a230222a3fbfd53.tar.gz kdepimpi-14bd7cc7412ffdbca09e1cd63a230222a3fbfd53.tar.bz2 |
agenda fix
-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 @@ -840,31 +840,31 @@ void KOAgenda::startItemAction(QPoint viewportPos) contentsToGrid(x,y,gx,gy); mStartCellX = gx; 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); } else { mActionType = MOVE; mActionItem->startMove(); setCursor(sizeAllCursor); } } else { int gridDistanceY = (y - gy * mGridSpacingY); - bool allowResize = ( mActionItem->incidence()->typeID() != todoID ); if (allowResize && gridDistanceY < mResizeBorderWidth && mActionItem->cellYTop() == mCurrentCellY && !mActionItem->firstMultiItem()) { mActionType = RESIZETOP; setCursor(sizeVerCursor); } else if (allowResize &&(mGridSpacingY - gridDistanceY) < mResizeBorderWidth && |