Skip to content
Permalink
Browse files

Fix for a2b2e16

  • Loading branch information
m-kuhn committed Apr 29, 2013
1 parent a2b2e16 commit 27c5b93fd71f2a055335f60081c6e669b2eb3e77
Showing with 3 additions and 2 deletions.
  1. +3 −2 src/gui/qgsrubberband.cpp
@@ -484,6 +484,9 @@ void QgsRubberBand::updateRect()
{
return;
}
qreal s = ( mIconSize - 1 ) / 2;
qreal p = mWidth;

QgsRectangle r ( it->x() + mTranslationOffsetX - s - p, it->y() + mTranslationOffsetY - s - p,
it->x() + mTranslationOffsetX + s + p, it->y() + mTranslationOffsetY + s + p );

@@ -492,8 +495,6 @@ void QgsRubberBand::updateRect()
QList<QgsPoint>::const_iterator it = mPoints.at( i ).constBegin();
for ( ; it != mPoints.at( i ).constEnd(); ++it )
{
qreal s = ( mIconSize - 1 ) / 2;
qreal p = mWidth;
QgsRectangle rect = QgsRectangle( it->x() + mTranslationOffsetX - s - p, it->y() + mTranslationOffsetY - s - p,
it->x() + mTranslationOffsetX + s + p, it->y() + mTranslationOffsetY + s + p );
r.combineExtentWith( &rect );

0 comments on commit 27c5b93

Please sign in to comment.
You can’t perform that action at this time.