Skip to content
Permalink
Browse files

Merge pull request #1334 from simonsonc/qrect-united

Use QRect::united instead of unite
  • Loading branch information
wonder-sk committed May 3, 2014
2 parents a096cf4 + 1dc8dd5 commit b0e4223478cdf3937d2408d530cacd076bed2e72
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/core/composer/qgscomposerarrow.cpp
@@ -113,7 +113,7 @@ void QgsComposerArrow::setSceneRect( const QRectF& rectangle )
double margin = computeMarkerMargin();

// Ensure the rectangle is at least as large as needed to include the markers
QRectF rect = rectangle.unite( QRectF( rectangle.x(), rectangle.y(), 2. * margin, 2. * margin ) );
QRectF rect = rectangle.united( QRectF( rectangle.x(), rectangle.y(), 2. * margin, 2. * margin ) );

// Compute new start and stop positions
double x[2] = {rect.x(), rect.x() + rect.width()};

0 comments on commit b0e4223

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