Commit 8d102f68 authored by Oliver Kellogg's avatar Oliver Kellogg
Browse files

umbrello/umlwidgets/widgetbase.cpp

- Update copyright year.

umbrello/umlwidgets/widget_factory.cpp
- In function makeWidgetFromXMI loading of widgets which represent a
  UMLObject, if the UML object cannot be found then change the message
  from Debug to Error and return null pointer.
  Reason: Umbrello currently cannot handle forward references in the XMI
  of diagram objects.
parent 3f9155fd
......@@ -4,7 +4,7 @@
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
* copyright (C) 2006-2020 *
* copyright (C) 2006-2021 *
* Umbrello UML Modeller Authors <umbrello-devel@kde.org> *
***************************************************************************/
......@@ -250,8 +250,9 @@ UMLWidget* makeWidgetFromXMI(const QString& tag,
UMLDoc *umldoc = UMLApp::app()->document();
UMLObject *o = umldoc->findObjectById(id);
if (o == 0) {
uDebug() << "makeWidgetFromXMI: cannot find object with id "
<< Uml::ID::toString(id);
uError() << "makeWidgetFromXMI: cannot find object with id " << Uml::ID::toString(id);
delete widget;
return 0;
}
if (tag == QLatin1String("actorwidget") || tag == QLatin1String("UML:ActorWidget")) {
......
......@@ -4,7 +4,7 @@
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
* copyright (C) 2004-2020 *
* copyright (C) 2004-2021 *
* Umbrello UML Modeller Authors <umbrello-devel@kde.org> *
***************************************************************************/
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment