Bug report #18685

[Layout] Adding a scale bar before any map item makes it unusable

Added by Harrissou Santanna about 6 years ago.

Category:Map Composer/Printing
Affected QGIS version:3.1(master) Regression?:No
Operating System: Easy fix?:No
Pull Request or Patch supplied:No Resolution:
Crashes QGIS or corrupts data:No Copied to github as #:26573


The title is a bit wrong but...
In a new print layout, add a scale bar, its "map" property is empty and it only shows 0
Now add a map item, the scale bar map property now shows 'Map 1' but still it's not resized to match the linked map (only 0 is shown)
Afaics, you'd need to play with the scalebar units parameter before the scale bar is refreshed. Even creating another map item and switching (back and forth) does nothing nor zooming in the linked map extent.

Also available in: Atom PDF