Skip to content

Commit e338daf

Browse files
committed
Fix misuse of enum in qwt_polar_plot
1 parent ce0fd7a commit e338daf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/app/gps/qwtpolar-0.1/qwt_polar_plot.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -753,7 +753,7 @@ QwtScaleMap QwtPolarPlot::scaleMap( int scaleId, const double radius ) const
753753
map.setScaleInterval( sd->lowerBound(), sd->upperBound() );
754754
#endif
755755

756-
if ( scaleId == QwtPolar::Azimuth )
756+
if ( scaleId == QwtPolar::ScaleAzimuth )
757757
{
758758
map.setPaintXInterval( d_data->azimuthOrigin,
759759
d_data->azimuthOrigin + M_2PI );
@@ -826,7 +826,7 @@ void QwtPolarPlot::initPlot( const QwtText &title )
826826
{
827827
ScaleData &scaleData = d_data->scaleData[scaleId];
828828

829-
if ( scaleId == QwtPolar::Azimuth )
829+
if ( scaleId == QwtPolar::ScaleAzimuth )
830830
{
831831
scaleData.minValue = 0.0;
832832
scaleData.maxValue = 360.0;

0 commit comments

Comments
 (0)