Summary: | arrowheads are not shown | ||
---|---|---|---|
Product: | [Applications] umbrello | Reporter: | Anton Pussep <anton> |
Component: | general | Assignee: | Umbrello Development Group <umbrello-devel> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | alexeyp |
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Debian stable | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: | |||
Attachments: | Umbrello file, using version 1.5.7 the arrowheads disappear |
Description
Anton Pussep
2007-05-28 13:26:19 UTC
Created attachment 20708 [details]
Umbrello file, using version 1.5.7 the arrowheads disappear
SVN commit 669259 by okellogg: loadFromXMI(): Before version 1.5.7, we forgot to write the "type" attribute of the AssociationWidget in saveToXMI(). As a workaround on loading pre- 1.5.7 XMI files, use the type from the UMLAssociation. BUG:146064 M +2 -0 ChangeLog M +14 -0 umbrello/associationwidget.cpp --- branches/KDE/3.5/kdesdk/umbrello/ChangeLog #669258:669259 @@ -1,12 +1,14 @@ Version 1.5.71 * Bugs/wishes from http://bugs.kde.org: +* Switching between tabbed and non-tabbed views requires restart (98204) * Preprocessor keywords ignored which causes endless loop in code import (119125) * Unstable saves and loads, class names become dirty (145709) * Crash on deleting class in list view (145762) * Class attribute documentation not generated for python (145916) * Python code generator does not wrap lines properly (145918) * Attribute documentation not generated for 'Export to XHTML' (145972) +* Arrowheads are not shown (146064) Version 1.5.7 --- branches/KDE/3.5/kdesdk/umbrello/umbrello/associationwidget.cpp #669258:669259 @@ -3437,7 +3437,21 @@ } // New style: The xmi.id is a reference to the UMLAssociation. + // If the UMLObject is not found right now, we try again later + // during the type resolution pass - see activate(). m_nId = STR2ID(id); + UMLObject *myObj = m_umldoc->findObjectById(m_nId); + if (myObj) { + const Uml::Object_Type ot = myObj->getBaseType(); + if (ot != ot_Association) { + setUMLObject(myObj); + } else { + UMLAssociation * myAssoc = static_cast<UMLAssociation*>(myObj); + setUMLAssociation(myAssoc); + if (type == "-1") + aType = myAssoc->getAssocType(); + } + } } setAssocType(aType); *** Bug 148280 has been marked as a duplicate of this bug. *** |