crash--
svn path=/trunk/KDE/kdelibs/; revision=1041323
This commit is contained in:
parent
25d1f3f5b6
commit
d86cac78e4
@ -152,7 +152,7 @@ void KineticScrolling::mousePressEvent(QGraphicsSceneMouseEvent *event)
|
||||
d->syncViewportRect();
|
||||
d->cposition = -d->parent->property("scrollPosition").value<QPointF>();
|
||||
|
||||
if (d->cposition == QPointF(0, 0) &&
|
||||
if (event && d->cposition == QPointF(0, 0) &&
|
||||
d->viewportGeometry.width() + 2 >= d->contentsSize.width() &&
|
||||
d->viewportGeometry.height() + 2 >= d->contentsSize.height()) {
|
||||
event->ignore();
|
||||
|
Loading…
Reference in New Issue
Block a user