Skip to content

Commit

Permalink
Lower default number of polygon candidates per cm2
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Dec 29, 2019
1 parent 92f232c commit 77b3d99
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/core/labeling/qgslabelingenginesettings.cpp
Expand Up @@ -33,7 +33,7 @@ void QgsLabelingEngineSettings::readSettingsFromProject( QgsProject *prj )
bool saved = false;
mSearchMethod = static_cast< Search >( prj->readNumEntry( QStringLiteral( "PAL" ), QStringLiteral( "/SearchMethod" ), static_cast< int >( Chain ), &saved ) );
mMaxLineCandidatesPerCm = prj->readDoubleEntry( QStringLiteral( "PAL" ), QStringLiteral( "/CandidatesLinePerCM" ), 5, &saved );
mMaxPolygonCandidatesPerCmSquared = prj->readDoubleEntry( QStringLiteral( "PAL" ), QStringLiteral( "/CandidatesPolygonPerCM" ), 10, &saved );
mMaxPolygonCandidatesPerCmSquared = prj->readDoubleEntry( QStringLiteral( "PAL" ), QStringLiteral( "/CandidatesPolygonPerCM" ), 2.5, &saved );

mFlags = nullptr;
if ( prj->readBoolEntry( QStringLiteral( "PAL" ), QStringLiteral( "/ShowingCandidates" ), false, &saved ) ) mFlags |= DrawCandidates;
Expand Down
2 changes: 1 addition & 1 deletion src/core/labeling/qgslabelingenginesettings.h
Expand Up @@ -220,7 +220,7 @@ class CORE_EXPORT QgsLabelingEngineSettings

// maximum density of line/polygon candidates per mm
double mMaxLineCandidatesPerCm = 5;
double mMaxPolygonCandidatesPerCmSquared = 10;
double mMaxPolygonCandidatesPerCmSquared = 2.5;

QColor mUnplacedLabelColor = QColor( 255, 0, 0 );

Expand Down

0 comments on commit 77b3d99

Please sign in to comment.