Fix export bar without opened diagram
Merge branch 'master' into MasterBugFixing