-rw-r--r-- | korganizer/koagenda.cpp | 16 |
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 | |||
@@ -477,6 +477,10 @@ bool KOAgenda::eventFilter_mouse(QObject *object, QMouseEvent *me) | |||
477 | if ( tempItem->height() > 10 ) { | 477 | if ( tempItem->height() > 10 ) { |
478 | int minV = tempItem->height()/4; | 478 | int minV = tempItem->height()/4; |
479 | if ( minV > (blockmoveDist/2)-2 ) | 479 | if ( minV > (blockmoveDist/2)-2 ) { |
480 | minV = (blockmoveDist/2)-2; | 480 | if ( minV > blockmoveDist ) |
481 | minV = blockmoveDist; | ||
482 | else | ||
483 | minV = (blockmoveDist/2); | ||
484 | } | ||
481 | bool border = false; | 485 | bool border = false; |
482 | int diff = tempItem->y() - viewportPos.y(); | 486 | int diff = tempItem->y() - viewportPos.y(); |
@@ -500,6 +504,10 @@ bool KOAgenda::eventFilter_mouse(QObject *object, QMouseEvent *me) | |||
500 | if ( tempItem->width() > 10 ) { | 504 | if ( tempItem->width() > 10 ) { |
501 | int minH = tempItem->width()/4; | 505 | int minH = tempItem->width()/4; |
502 | if ( minH > (blockmoveDist/2)-2 ) | 506 | if ( minH > (blockmoveDist/2)-2 ) { |
503 | minH = (blockmoveDist/2)-2; | 507 | if ( minH > blockmoveDist ) |
508 | minH = blockmoveDist; | ||
509 | else | ||
510 | minH = (blockmoveDist/2); | ||
511 | } | ||
504 | bool border = false; | 512 | bool border = false; |
505 | int diff = tempItem->x() - viewportPos.x(); | 513 | int diff = tempItem->x() - viewportPos.x(); |