Skip to content

Commit

Permalink
[composer] Fix possible crash in scale bar update (refs #11394)
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Oct 13, 2014
1 parent 08d8016 commit 9f063df
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/composer/qgscomposerscalebar.cpp
Expand Up @@ -407,7 +407,7 @@ void QgsComposerScaleBar::adjustBoxSize()
void QgsComposerScaleBar::update()
{
//Don't adjust box size for numeric scale bars:
if ( mStyle->name() != "Numeric" )
if ( mStyle && mStyle->name() != "Numeric" )
{
adjustBoxSize();
}
Expand Down

0 comments on commit 9f063df

Please sign in to comment.