summaryrefslogtreecommitdiffabout
path: root/korganizer/koagenda.cpp
Side-by-side diff
Diffstat (limited to 'korganizer/koagenda.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--korganizer/koagenda.cpp16
1 files changed, 12 insertions, 4 deletions
diff --git a/korganizer/koagenda.cpp b/korganizer/koagenda.cpp
index faddac4..ce73168 100644
--- a/korganizer/koagenda.cpp
+++ b/korganizer/koagenda.cpp
@@ -478,4 +478,8 @@ bool KOAgenda::eventFilter_mouse(QObject *object, QMouseEvent *me)
int minV = tempItem->height()/4;
- if ( minV > (blockmoveDist/2)-2 )
- minV = (blockmoveDist/2)-2;
+ if ( minV > (blockmoveDist/2)-2 ) {
+ if ( minV > blockmoveDist )
+ minV = blockmoveDist;
+ else
+ minV = (blockmoveDist/2);
+ }
bool border = false;
@@ -501,4 +505,8 @@ bool KOAgenda::eventFilter_mouse(QObject *object, QMouseEvent *me)
int minH = tempItem->width()/4;
- if ( minH > (blockmoveDist/2)-2 )
- minH = (blockmoveDist/2)-2;
+ if ( minH > (blockmoveDist/2)-2 ) {
+ if ( minH > blockmoveDist )
+ minH = blockmoveDist;
+ else
+ minH = (blockmoveDist/2);
+ }
bool border = false;