Skip to content

Commit

Permalink
[Fix #7574] [rubberband] Artifacts when using a rubberband with a sin…
Browse files Browse the repository at this point in the history
…gle point
  • Loading branch information
m-kuhn committed Apr 29, 2013
1 parent a9a58fa commit a2b2e16
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/gui/qgsrubberband.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -484,8 +484,8 @@ void QgsRubberBand::updateRect()
{
return;
}
QgsRectangle r( it->x() + mTranslationOffsetX, it->y() + mTranslationOffsetY,
it->x() + mTranslationOffsetX, it->y() + mTranslationOffsetY );
QgsRectangle r ( it->x() + mTranslationOffsetX - s - p, it->y() + mTranslationOffsetY - s - p,
it->x() + mTranslationOffsetX + s + p, it->y() + mTranslationOffsetY + s + p );

for ( int i = 0; i < mPoints.size(); ++i )
{
Expand Down

0 comments on commit a2b2e16

Please sign in to comment.