Bug 417784 - Some errors happened when exporting the images - cass diagram: Cannot save an empty diagram
Summary: Some errors happened when exporting the images - cass diagram: Cannot save an...
Status: RESOLVED FIXED
Alias: None
Product: umbrello
Classification: Applications
Component: exporter (show other bugs)
Version: 2.30.2 (KDE releases 19.12.2)
Platform: Other All
: NOR normal
Target Milestone: ---
Assignee: Umbrello Development Group
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-02-17 11:21 UTC by Ralf Habacker
Modified: 2020-02-17 11:41 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In: 2.30.3 (KDE releases 19.12.3)


Attachments
test case (24.89 KB, application/x-uml)
2020-02-17 11:21 UTC, Ralf Habacker
Details

Note You need to log in before you can comment on or make changes to this bug.
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