Skip to content

Commit

Permalink
[decorations] Fix scale bar color not applied to division ticks
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] authored and nyalldawson committed Jul 23, 2020
1 parent 82f4d26 commit a761eac
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/app/decorations/qgsdecorationscalebar.cpp
Expand Up @@ -168,7 +168,8 @@ void QgsDecorationScaleBar::setupScaleBar()
lineSymbol->setColor( mColor ); // Compatibility with pre 3.2 configuration
lineSymbol->setWidth( 0.3 );
lineSymbol->setOutputUnit( QgsUnitTypes::RenderMillimeters );
mSettings.setLineSymbol( lineSymbol.release() );
mSettings.setLineSymbol( lineSymbol->clone() );
mSettings.setDivisionLineSymbol( lineSymbol.release() );
mSettings.setHeight( 2.2 );
break;
}
Expand Down

0 comments on commit a761eac

Please sign in to comment.