Skip to content
Permalink
Browse files

Fix build

  • Loading branch information
nyalldawson committed Aug 26, 2015
1 parent 0fb356e commit b43026e7b13f2c666da221ef054c40eacdb10225
Showing with 4 additions and 3 deletions.
  1. +4 −3 tests/src/core/testqgsrasterlayer.cpp
@@ -281,13 +281,14 @@ bool TestQgsRasterLayer::testColorRamp( QString name, QgsVectorColorRampV2* colo
void TestQgsRasterLayer::colorRamp1()
{
// gradient ramp
QgsVectorGradientColorRampV2 colorRamp( QColor( Qt::red ), QColor( Qt::black ) );
QgsVectorGradientColorRampV2* colorRamp = new QgsVectorGradientColorRampV2( QColor( Qt::red ), QColor( Qt::black ) );
QgsGradientStopsList stops;
stops.append( QgsGradientStop( 0.5, QColor( Qt::white ) ) );
colorRamp.setStops( stops );
colorRamp->setStops( stops );

// QVERIFY( testColorRamp( "raster_colorRamp1", colorRamp, QgsColorRampShader::INTERPOLATED, 5 ) );
QVERIFY( testColorRamp( "raster_colorRamp1", &colorRamp, QgsColorRampShader::DISCRETE, 10 ) );
QVERIFY( testColorRamp( "raster_colorRamp1", colorRamp, QgsColorRampShader::DISCRETE, 10 ) );
delete colorRamp;
}

void TestQgsRasterLayer::colorRamp2()

0 comments on commit b43026e

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