Skip to content

Commit

Permalink
Fix menu not shown when clicking 'add' item in style manager dialog a…
Browse files Browse the repository at this point in the history
…nd color ramp tab is active
  • Loading branch information
nyalldawson committed Oct 19, 2020
1 parent b637b14 commit a085ce8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gui/symbology/qgsstylemanagerdialog.cpp
Expand Up @@ -528,7 +528,7 @@ void QgsStyleManagerDialog::tabItemType_currentChanged( int )
{
btnAddItem->setMenu( mMenuBtnAddItemColorRamp );
}
if ( !mReadOnly && isLegendPatchShape ) // legend patch shape tab
else if ( !mReadOnly && isLegendPatchShape ) // legend patch shape tab
{
btnAddItem->setMenu( mMenuBtnAddItemLegendPatchShape );
}
Expand Down

0 comments on commit a085ce8

Please sign in to comment.