diff options
Diffstat (limited to 'examples/opengl/overpainting')
-rw-r--r-- | examples/opengl/overpainting/bubble.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/opengl/overpainting/bubble.cpp b/examples/opengl/overpainting/bubble.cpp index c64cca7e0d..dbcb72bc93 100644 --- a/examples/opengl/overpainting/bubble.cpp +++ b/examples/opengl/overpainting/bubble.cpp @@ -85,7 +85,7 @@ void Bubble::move(const QRect &bbox) qreal rightOverflow = position.x() + radius - bbox.right(); qreal topOverflow = position.y() - radius - bbox.top(); qreal bottomOverflow = position.y() + radius - bbox.bottom(); - + if (leftOverflow < 0.0) { position.setX(position.x() - 2 * leftOverflow); vel.setX(-vel.x()); |