Skip to content

Commit 7e01bf9

Browse files
author
mhugent
committedNov 26, 2009
Fix arrow bug and an assert on windows
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@12261 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent 4e709f0 commit 7e01bf9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎src/core/composer/qgscomposerarrow.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -298,10 +298,10 @@ void QgsComposerArrow::adaptItemSceneRect()
298298
//rectangle containing start and end point
299299
QRectF rect = QRectF( std::min( mStartPoint.x(), mStopPoint.x() ), std::min( mStartPoint.y(), mStopPoint.y() ), \
300300
fabs( mStopPoint.x() - mStartPoint.x() ), fabs( mStopPoint.y() - mStartPoint.y() ) );
301-
double enlarge;
301+
double enlarge = 0;
302302
if ( mMarkerMode == DefaultMarker )
303303
{
304-
enlarge == mPen.widthF() / 2.0 + mArrowHeadWidth / 2.0;
304+
enlarge = mPen.widthF() / 2.0 + mArrowHeadWidth / 2.0;
305305
}
306306
else if ( mMarkerMode == NoMarker )
307307
{

0 commit comments

Comments
 (0)
Please sign in to comment.