Skip to content

Commit

Permalink
Make symbol line fill tests more robust
Browse files Browse the repository at this point in the history
(cherry-picked from 711c38d)
  • Loading branch information
nyalldawson committed Nov 26, 2015
1 parent ea863d2 commit 6fcce7a
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/src/core/testqgslinefillsymbol.cpp
Expand Up @@ -139,7 +139,7 @@ void TestQgsLineFillSymbol::lineFillSymbol()

QgsStringMap properties;
properties.insert( "color", "0,0,0,255" );
properties.insert( "width", "0.3" );
properties.insert( "width", "1" );
properties.insert( "capstyle", "flat" );
QgsLineSymbolV2* lineSymbol = QgsLineSymbolV2::createSimple( properties );

Expand All @@ -153,7 +153,7 @@ void TestQgsLineFillSymbol::dataDefinedSubSymbol()

QgsStringMap properties;
properties.insert( "color", "0,0,0,255" );
properties.insert( "width", "0.3" );
properties.insert( "width", "1" );
properties.insert( "capstyle", "flat" );
QgsLineSymbolV2* lineSymbol = QgsLineSymbolV2::createSimple( properties );
lineSymbol->symbolLayer( 0 )->setDataDefinedProperty( "color", new QgsDataDefined( QString( "if(\"Name\" ='Lake','#ff0000','#ff00ff')" ) ) );
Expand Down
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 6fcce7a

Please sign in to comment.