Skip to content
Permalink
Browse files

do not use fitted curve in histogram - fixes rending problem with low…

…-count bins (thanks to Radim for pointing out)
  • Loading branch information
etiennesky committed Oct 4, 2012
1 parent 48e0a97 commit 3d326ccb54ec70c233d85158849cd5ab6f3431a6
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/gui/raster/qgsrasterhistogramwidget.cpp
@@ -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

0 comments on commit 3d326cc

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