Skip to content

Commit

Permalink
Solve additional code issues
Browse files Browse the repository at this point in the history
  • Loading branch information
m-kuhn authored and nyalldawson committed Jul 16, 2019
1 parent a51fbd6 commit 331c67e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/core/qgsunittypes.cpp
Expand Up @@ -1233,6 +1233,8 @@ QString QgsUnitTypes::toString( QgsUnitTypes::AngleUnit unit )
return QObject::tr( "seconds of arc", "angle" );
case AngleTurn:
return QObject::tr( "turns", "angle" );
case AngleMil:
return QObject::tr( "mil", "angle" );
case AngleUnknownUnit:
return QObject::tr( "<unknown>", "angle" );
}
Expand Down
2 changes: 1 addition & 1 deletion src/gui/qgsrubberband.cpp
Expand Up @@ -536,7 +536,7 @@ void QgsRubberBand::updateRect()
if ( mSvgRenderer )
{
QRectF viewBox = mSvgRenderer->viewBoxF();
iconSize = qMax( std::fabs( mSvgOffset.x() ) + .5 * viewBox.width(), std::fabs( mSvgOffset.y() ) + .5 * viewBox.height() );
iconSize = std::max( std::fabs( mSvgOffset.x() ) + .5 * viewBox.width(), std::fabs( mSvgOffset.y() ) + .5 * viewBox.height() );
}

qreal w = ( ( mIconSize - 1 ) / 2 + mPen.width() ); // in canvas units
Expand Down

0 comments on commit 331c67e

Please sign in to comment.