Skip to content

Commit 995fbad

Browse files
committedFeb 7, 2013
Fix typo in QgsPalLabeling
1 parent fbf9991 commit 995fbad

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed
 

‎python/core/qgspallabeling.sip

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ class QgsPalLayerSettings
4848
MultiRight
4949
};
5050

51-
// update mDataDefinedNames in constructor when adding new enum value
51+
// update mDataDefinedNames QList in constructor when adding/deleting enum value
5252
enum DataDefinedProperties
5353
{
5454
Size = 0,

‎src/core/qgspallabeling.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -428,10 +428,10 @@ void QgsPalLayerSettings::readDataDefinedProperty( QgsVectorLayer* layer,
428428
QVariant oldPropertyField = layer->customProperty( oldPropertyName );
429429

430430
// Fix to migrate from old-style vector api, where returned QMap keys possibly
431-
// had 'holes' in sequence of field indecies, e.g. 0,2,3
431+
// had 'holes' in sequence of field indices, e.g. 0,2,3
432432
// QgsAttrPalIndexNameHash provides a means of access field name in sequences from
433433
// providers that procuded holes (e.g. PostGIS skipped geom column), otherwise it is empty
434-
QgsAttrPalIndexNameHash oldIndeciesToNames = layer->dataProvider()->palAttributeIndexNames();
434+
QgsAttrPalIndexNameHash oldIndicesToNames = layer->dataProvider()->palAttributeIndexNames();
435435

436436
QString name;
437437
if ( newPropertyField.isValid() )
@@ -450,9 +450,9 @@ void QgsPalLayerSettings::readDataDefinedProperty( QgsVectorLayer* layer,
450450

451451
if ( conversionOk )
452452
{
453-
if ( !oldIndeciesToNames.isEmpty() )
453+
if ( !oldIndicesToNames.isEmpty() )
454454
{
455-
name = oldIndeciesToNames.value( indx );
455+
name = oldIndicesToNames.value( indx );
456456
}
457457
else
458458
{

0 commit comments

Comments
 (0)
Please sign in to comment.