Skip to content
Permalink
Browse files

Fix misuse of enum in qwt_polar_plot

  • Loading branch information
nyalldawson committed Feb 16, 2015
1 parent ce0fd7a commit e338daf206106bff9c6b84df94cfc7670c32f9cd
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/app/gps/qwtpolar-0.1/qwt_polar_plot.cpp
@@ -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 );
@@ -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;

0 comments on commit e338daf

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