Bug 417784

Summary: Some errors happened when exporting the images - cass diagram: Cannot save an empty diagram
Product: [Applications] umbrello Reporter: Ralf Habacker <ralf.habacker>
Component: exporterAssignee: Umbrello Development Group <umbrello-devel>
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version: 2.30.2 (KDE releases 19.12.2)   
Target Milestone: ---   
Platform: Other   
OS: All   
Latest Commit: Version Fixed In: 2.30.3 (KDE releases 19.12.3)
Attachments: test case

Description Ralf Habacker 2020-02-17 11:21:07 UTC
Created attachment 126100 [details]
test case

STEPS TO REPRODUCE
1. start umbrello
2. open the appended test case
3. select file->export model->export model to xhtml

OBSERVED RESULT
The above error message is displayed and the export is aborted.

EXPECTED RESULT
The export should not fail if there is an empty class diagram

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version: 

ADDITIONAL INFORMATION
Comment 1 Ralf Habacker 2020-02-17 11:41:13 UTC
Git commit 78c5b1ff737ff31fe6a4564e6d7b1fc3dfb8b8e2 by Ralf Habacker.
Committed on 17/02/2020 at 11:40.
Pushed by habacker into branch 'release/19.12'.

Fixed error message 'Can't save an empty diagram' with Docbook and Xhtml export

With an empty diagram, a small empty square is saved as an image instead.
FIXED-IN:2.30.3 (KDE releases 19.12.3)

M  +11   -5    umbrello/umlviewimageexportermodel.cpp

https://invent.kde.org/kde/umbrello/commit/78c5b1ff737ff31fe6a4564e6d7b1fc3dfb8b8e2