diff --git a/src/tools/UBGraphicsCache.cpp b/src/tools/UBGraphicsCache.cpp index 9895b3c4..af82f45d 100644 --- a/src/tools/UBGraphicsCache.cpp +++ b/src/tools/UBGraphicsCache.cpp @@ -105,7 +105,7 @@ void UBGraphicsCache::paint(QPainter *painter, const QStyleOptionGraphicsItem *o } else if(eMaskShap_Rectangle == mMaskShape) { - path.addRect(mShapePos.x(), mShapePos.y(), mShapeWidth, mShapeWidth); + path.addRect(mShapePos.x() - mShapeWidth / 2, mShapePos.y() - mShapeWidth / 2, mShapeWidth, mShapeWidth); } path.setFillRule(Qt::OddEvenFill); }