Skip to content

Commit

Permalink
Fix arrow bug and an assert on windows
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@12261 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
mhugent committed Nov 26, 2009
1 parent 4e709f0 commit 7e01bf9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/core/composer/qgscomposerarrow.cpp
Expand Up @@ -298,10 +298,10 @@ void QgsComposerArrow::adaptItemSceneRect()
//rectangle containing start and end point
QRectF rect = QRectF( std::min( mStartPoint.x(), mStopPoint.x() ), std::min( mStartPoint.y(), mStopPoint.y() ), \
fabs( mStopPoint.x() - mStartPoint.x() ), fabs( mStopPoint.y() - mStartPoint.y() ) );
double enlarge;
double enlarge = 0;
if ( mMarkerMode == DefaultMarker )
{
enlarge == mPen.widthF() / 2.0 + mArrowHeadWidth / 2.0;
enlarge = mPen.widthF() / 2.0 + mArrowHeadWidth / 2.0;
}
else if ( mMarkerMode == NoMarker )
{
Expand Down

0 comments on commit 7e01bf9

Please sign in to comment.