Skip to content

Commit

Permalink
do not use fitted curve in histogram - fixes rending problem with low…
Browse files Browse the repository at this point in the history
…-count bins (thanks to Radim for pointing out)
  • Loading branch information
etiennesky committed Oct 4, 2012
1 parent 48e0a97 commit 3d326cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gui/raster/qgsrasterhistogramwidget.cpp
Expand Up @@ -412,7 +412,7 @@ void QgsRasterHistogramWidget::refreshHistogram()
QgsRasterHistogram myHistogram = mRasterLayer->dataProvider()->histogram( myIteratorInt, BINCOUNT, std::numeric_limits<double>::quiet_NaN(), std::numeric_limits<double>::quiet_NaN(), QgsRectangle(), sampleSize );

QwtPlotCurve * mypCurve = new QwtPlotCurve( tr( "Band %1" ).arg( myIteratorInt ) );
mypCurve->setCurveAttribute( QwtPlotCurve::Fitted );
//mypCurve->setCurveAttribute( QwtPlotCurve::Fitted );
mypCurve->setRenderHint( QwtPlotItem::RenderAntialiased );
mypCurve->setPen( QPen( mHistoColors.at( myIteratorInt ) ) );
#if defined(QWT_VERSION) && QWT_VERSION>=0x060000
Expand Down

0 comments on commit 3d326cc

Please sign in to comment.