Skip to content
Permalink
Browse files

Lower default number of polygon candidates per cm2

  • Loading branch information
nyalldawson committed Dec 26, 2019
1 parent 92f232c commit 77b3d99b8b2cd73a17da585dceee3d148814f4a9
@@ -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;
@@ -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 );

0 comments on commit 77b3d99

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