| Summary: | ERD not saved correctly, rendered unusable | ||
|---|---|---|---|
| Product: | [Applications] umbrello | Reporter: | Piotr Keplicz <keplicz> |
| Component: | general | Assignee: | Oliver Kellogg <okellogg> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | ||
| Priority: | NOR | ||
| Version First Reported In: | unspecified | ||
| Target Milestone: | --- | ||
| Platform: | Ubuntu | ||
| OS: | Linux | ||
| Latest Commit: | Version Fixed/Implemented In: | ||
| Sentry Crash Report: | |||
| Attachments: |
test1.xmi: ERD after first save/exit
test2.xmi: ERD after second save/exit test3.xmi: ERD after third save/exit |
||
|
Description
Piotr Keplicz
2007-02-08 09:41:46 UTC
Created attachment 19586 [details]
test1.xmi: ERD after first save/exit
Created attachment 19587 [details]
test2.xmi: ERD after second save/exit
Created attachment 19588 [details]
test3.xmi: ERD after third save/exit
Possibly related with #141064. SVN commit 631744 by okellogg:
getDatatypes(): Interestingly, in the line
UMLObjectListIt oit(m_datatypeRoot->containedObjects());
the iterator is always constructed on an empty list. If we instead write
UMLObjectList objects = m_datatypeRoot->containedObjects();
UMLObjectListIt oit(objects);
then all is fine.
CCBUG:141385
M +2 -2 umldoc.cpp
--- branches/KDE/3.5/kdesdk/umbrello/umbrello/umldoc.cpp #631743:631744
@@ -1870,10 +1870,10 @@
}
UMLClassifierList UMLDoc::getDatatypes() {
+ UMLObjectList objects = m_datatypeRoot->containedObjects();
UMLClassifierList datatypeList;
UMLObject *obj;
- for (UMLObjectListIt oit(m_datatypeRoot->containedObjects());
- (obj = oit.current()) != NULL; ++oit) {
+ for (UMLObjectListIt oit(objects); (obj = oit.current()) != NULL; ++oit) {
if (obj->getBaseType() == ot_Datatype) {
datatypeList.append(static_cast<UMLClassifier*>(obj));
}
I'm not quite sure whether the above fix closes this PR out entirely. Could someone please verify, thanks. I will close this unless I hear back within a few days... I've just installed 1.5.61, which contains this patch. Looks fine, diagrams seem to be saved correctly. Thanks! Thanks. |