Skip to content

Commit

Permalink
Fix misuse of enum in qwt_polar_plot
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Feb 16, 2015
1 parent ce0fd7a commit e338daf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/app/gps/qwtpolar-0.1/qwt_polar_plot.cpp
Expand Up @@ -753,7 +753,7 @@ QwtScaleMap QwtPolarPlot::scaleMap( int scaleId, const double radius ) const
map.setScaleInterval( sd->lowerBound(), sd->upperBound() );
#endif

if ( scaleId == QwtPolar::Azimuth )
if ( scaleId == QwtPolar::ScaleAzimuth )
{
map.setPaintXInterval( d_data->azimuthOrigin,
d_data->azimuthOrigin + M_2PI );
Expand Down Expand Up @@ -826,7 +826,7 @@ void QwtPolarPlot::initPlot( const QwtText &title )
{
ScaleData &scaleData = d_data->scaleData[scaleId];

if ( scaleId == QwtPolar::Azimuth )
if ( scaleId == QwtPolar::ScaleAzimuth )
{
scaleData.minValue = 0.0;
scaleData.maxValue = 360.0;
Expand Down

0 comments on commit e338daf

Please sign in to comment.