Skip to content

Commit 1b1db22

Browse files
committedAug 9, 2016
Slightly increase default maximum angles for curved labels
The recent improvements to curve label rendering make this possible
1 parent dc9ed2b commit 1b1db22

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed
 

‎src/core/qgspallabeling.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -204,8 +204,8 @@ QgsPalLayerSettings::QgsPalLayerSettings()
204204
offsetType = FromPoint;
205205
angleOffset = 0;
206206
preserveRotation = true;
207-
maxCurvedCharAngleIn = 20.0;
208-
maxCurvedCharAngleOut = -20.0;
207+
maxCurvedCharAngleIn = 25.0;
208+
maxCurvedCharAngleOut = -25.0;
209209
priority = 5;
210210
repeatDistance = 0;
211211
repeatDistanceUnit = MM;
@@ -1040,8 +1040,8 @@ void QgsPalLayerSettings::readFromLayer( QgsVectorLayer* layer )
10401040
}
10411041
angleOffset = layer->customProperty( "labeling/angleOffset", QVariant( 0.0 ) ).toDouble();
10421042
preserveRotation = layer->customProperty( "labeling/preserveRotation", QVariant( true ) ).toBool();
1043-
maxCurvedCharAngleIn = layer->customProperty( "labeling/maxCurvedCharAngleIn", QVariant( 20.0 ) ).toDouble();
1044-
maxCurvedCharAngleOut = layer->customProperty( "labeling/maxCurvedCharAngleOut", QVariant( -20.0 ) ).toDouble();
1043+
maxCurvedCharAngleIn = layer->customProperty( "labeling/maxCurvedCharAngleIn", QVariant( 25.0 ) ).toDouble();
1044+
maxCurvedCharAngleOut = layer->customProperty( "labeling/maxCurvedCharAngleOut", QVariant( -25.0 ) ).toDouble();
10451045
priority = layer->customProperty( "labeling/priority" ).toInt();
10461046
repeatDistance = layer->customProperty( "labeling/repeatDistance", 0.0 ).toDouble();
10471047
repeatDistanceUnit = static_cast< SizeUnit >( layer->customProperty( "labeling/repeatDistanceUnit", QVariant( MM ) ).toUInt() );
@@ -1496,8 +1496,8 @@ void QgsPalLayerSettings::readXml( QDomElement& elem )
14961496
}
14971497
angleOffset = placementElem.attribute( "angleOffset", "0" ).toDouble();
14981498
preserveRotation = placementElem.attribute( "preserveRotation", "1" ).toInt();
1499-
maxCurvedCharAngleIn = placementElem.attribute( "maxCurvedCharAngleIn", "20" ).toDouble();
1500-
maxCurvedCharAngleOut = placementElem.attribute( "maxCurvedCharAngleOut", "-20" ).toDouble();
1499+
maxCurvedCharAngleIn = placementElem.attribute( "maxCurvedCharAngleIn", "25" ).toDouble();
1500+
maxCurvedCharAngleOut = placementElem.attribute( "maxCurvedCharAngleOut", "-25" ).toDouble();
15011501
priority = placementElem.attribute( "priority" ).toInt();
15021502
repeatDistance = placementElem.attribute( "repeatDistance", "0" ).toDouble();
15031503
repeatDistanceUnit = static_cast< SizeUnit >( placementElem.attribute( "repeatDistanceUnit", QString::number( MM ) ).toUInt() );

0 commit comments

Comments
 (0)
Please sign in to comment.