mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-25 00:58:06 -05:00
[composer] Fix possible crash in scale bar update (refs #11394)
This commit is contained in:
parent
08d80160ea
commit
9f063df86c
@ -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();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user