Skip to content
Permalink
Browse files

Two bug fixes for graduated renderer

  • Loading branch information
ccrook committed Oct 5, 2014
1 parent 953f977 commit 6c2c6e2b6bc0357006c8b07515a1d629f57bf8a8
@@ -6,7 +6,7 @@ class QgsRendererRangeV2

public:
QgsRendererRangeV2();
QgsRendererRangeV2( double lowerValue, double upperValue, QgsSymbolV2* symbol, QString label, bool render = true );
QgsRendererRangeV2( double lowerValue, double upperValue, QgsSymbolV2* symbol /Transfer/, QString label, bool render = true );
QgsRendererRangeV2( const QgsRendererRangeV2& range );

// default dtor is ok
@@ -378,6 +378,7 @@ QgsGraduatedSymbolRendererV2Widget::QgsGraduatedSymbolRendererV2Widget( QgsVecto
, mModel( 0 )
{


// try to recognize the previous renderer
// (null renderer means "no previous renderer")
if ( renderer )
@@ -391,6 +392,7 @@ QgsGraduatedSymbolRendererV2Widget::QgsGraduatedSymbolRendererV2Widget( QgsVecto

// setup user interface
setupUi( this );
mModel = new QgsGraduatedSymbolRendererV2Model( this );

mExpressionWidget->setFilters( QgsFieldProxyModel::Numeric | QgsFieldProxyModel::Date );
mExpressionWidget->setLayer( mLayer );
@@ -526,7 +528,6 @@ void QgsGraduatedSymbolRendererV2Widget::updateUiFromRenderer( bool updateCount
spinPrecision->setValue( labelFormat.precision() );
cbxTrimTrailingZeroes->setChecked( labelFormat.trimTrailingZeroes() );

mModel = new QgsGraduatedSymbolRendererV2Model( this );
mModel->setRenderer( mRenderer );
viewGraduated->setModel( mModel );
viewGraduated->resizeColumnToContents( 0 );

0 comments on commit 6c2c6e2

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