Updated the square mask for the cache tool

preferencesAboutTextFull
shibakaneki 13 years ago
parent 6a89a20d43
commit 6273693eed
  1. 2
      src/tools/UBGraphicsCache.cpp

@ -105,7 +105,7 @@ void UBGraphicsCache::paint(QPainter *painter, const QStyleOptionGraphicsItem *o
} }
else if(eMaskShap_Rectangle == mMaskShape) 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); path.setFillRule(Qt::OddEvenFill);
} }

Loading…
Cancel
Save