Skip to content
Permalink
Browse files

Fix Coverity unreachable code warning

  • Loading branch information
nyalldawson committed Apr 5, 2018
1 parent bcf9a97 commit 0ef9c729c0eae8125dc69f9c5500837277f7e278
Showing with 0 additions and 3 deletions.
  1. +0 −3 src/app/qgsdecorationscalebar.cpp
@@ -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 );

0 comments on commit 0ef9c72

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