Skip to content

Commit

Permalink
Fix Coverity unreachable code warning
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Apr 5, 2018
1 parent bcf9a97 commit 0ef9c72
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/app/qgsdecorationscalebar.cpp
Expand Up @@ -289,9 +289,6 @@ void QgsDecorationScaleBar::render( const QgsMapSettings &mapSettings, QgsRender
case QgsUnitTypes::DistanceUnknownUnit:
scaleBarUnitLabel = QgsUnitTypes::toAbbreviatedString( scaleBarUnits );
break;
scaleBarUnitLabel = tr( "unknown" );
QgsDebugMsg( QString( "Error: not picked up map units - actual value = %1" ).arg( scaleBarUnits ) );
break;
}

mSettings.setUnits( scaleBarUnits );
Expand Down

0 comments on commit 0ef9c72

Please sign in to comment.