Skip to content
Permalink
Browse files

[composer] Fix possible crash in scale bar update (refs #11394)

  • Loading branch information
nyalldawson committed Oct 13, 2014
1 parent 08d8016 commit 9f063df86c82d2b775bc1c9156a978f82c9ec0aa
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/core/composer/qgscomposerscalebar.cpp
@@ -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();
}

0 comments on commit 9f063df

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