[Uml-devel] [Bug 58809] Image export via command line

Oliver Kellogg okellogg at users.sourceforge.net
Sun Apr 2 03:20:03 UTC 2006


------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
         
http://bugs.kde.org/show_bug.cgi?id=58809         




------- Additional Comments From okellogg users sourceforge net  2006-04-02 12:19 -------
Thanks for your contribution Daniel.
Here are my findings about the crash.

1) Changed the loop in UMLViewImageExporterModel::getDiagramFileName()
 as follows:

    while (! UMLListView::typeIsRootView(listViewItem->getType())) {
        name.insert(0, listViewItem->getText() + "/");
        listViewItem = static_cast<UMLListViewItem*>(listViewItem->parent());
        if (listViewItem == NULL)
            break;
    }


2) Invocation example:
 umbrello -export png -directory /home/kellogg/tmp -use-folders \
   file:///home/kellogg/xmi/seq-110843.xmi

I had to use the "file://" prefix else umlviewimageexportermodel.cpp:150

    if (!url.isLocalFile()) {
        if (!KIO::NetAccess::upload(tmpFile.name(), url ....

the isLocalFile() would return false and the KIO::NetAccess::upload()
would crash. I.e. the non-local case is still not working.




More information about the umbrello-devel mailing list