Skip to content

Commit

Permalink
Bump default point count to 10
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Oct 28, 2019
1 parent a4d20a0 commit a580125
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Expand Up @@ -1925,7 +1925,7 @@ A fill symbol layer which places markers at random locations within polygons.
%End
public:

QgsRandomMarkerFillSymbolLayer( int pointCount = 1, unsigned long seed = 0 );
QgsRandomMarkerFillSymbolLayer( int pointCount = 10, unsigned long seed = 0 );
%Docstring
Constructor for QgsRandomMarkerFillSymbolLayer, with the specified ``pointCount``.

Expand Down
2 changes: 1 addition & 1 deletion src/core/symbology/qgsfillsymbollayer.cpp
Expand Up @@ -3927,7 +3927,7 @@ QgsRandomMarkerFillSymbolLayer::QgsRandomMarkerFillSymbolLayer( int pointCount,

QgsSymbolLayer *QgsRandomMarkerFillSymbolLayer::create( const QgsStringMap &properties )
{
const int pointCount = properties.value( QStringLiteral( "point_count" ), QStringLiteral( "1" ) ).toInt();
const int pointCount = properties.value( QStringLiteral( "point_count" ), QStringLiteral( "10" ) ).toInt();

unsigned long seed = 0;
if ( properties.contains( QStringLiteral( "seed" ) ) )
Expand Down
4 changes: 2 additions & 2 deletions src/core/symbology/qgsfillsymbollayer.h
Expand Up @@ -1740,7 +1740,7 @@ class CORE_EXPORT QgsRandomMarkerFillSymbolLayer : public QgsFillSymbolLayer
* Optionally a specific random number \a seed can be used when generating points. A \a seed of 0 indicates that
* a truly random sequence should be used.
*/
QgsRandomMarkerFillSymbolLayer( int pointCount = 1, unsigned long seed = 0 );
QgsRandomMarkerFillSymbolLayer( int pointCount = 10, unsigned long seed = 0 );

/**
* Creates a new QgsRandomMarkerFillSymbolLayer using the specified \a properties map containing symbol properties (see properties()).
Expand Down Expand Up @@ -1834,7 +1834,7 @@ class CORE_EXPORT QgsRandomMarkerFillSymbolLayer : public QgsFillSymbolLayer
void render( QgsRenderContext &context, const QVector< Part > &parts, const QgsFeature &feature, bool selected );

std::unique_ptr< QgsMarkerSymbol > mMarker;
int mPointCount = 1;
int mPointCount = 10;
unsigned long mSeed = 0;
bool mClipPoints = false;

Expand Down

0 comments on commit a580125

Please sign in to comment.