Skip to content
Permalink
Browse files

Avoid duplicate 'follow label placement' options in combo box

  • Loading branch information
nyalldawson committed Jul 8, 2016
1 parent 6c0afcd commit ea3fc65c9dfdb327f51a45b572b06a51f98c579f
Showing with 8 additions and 1 deletion.
  1. +8 −1 src/app/qgslabelinggui.cpp
@@ -590,7 +590,14 @@ void QgsLabelingGui::init()
if ( mLayer->geometryType() == QGis::Point )
{
// follow placement alignment is only valid for point layers
mFontMultiLineAlignComboBox->addItem( tr( "Follow label placement" ) );
if ( mFontMultiLineAlignComboBox->findText( tr( "Follow label placement" ) ) == -1 )
mFontMultiLineAlignComboBox->addItem( tr( "Follow label placement" ) );
}
else
{
int idx = mFontMultiLineAlignComboBox->findText( tr( "Follow label placement" ) );
if ( idx >= 0 )
mFontMultiLineAlignComboBox->removeItem( idx );
}

// load labeling settings from layer

0 comments on commit ea3fc65

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