[Uml-devel] [Bug 54575] association anchor points not saved
Oliver Kellogg
okellogg at users.sourceforge.net
Sat May 10 02:44:23 UTC 2003
------- 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=54575
------- Additional Comments From okellogg at users.sourceforge.net 2003-05-10 11:41 -------
First of all, I had to do this:
*** /dosc/kdesdk/umbrello/umbrello/linepath.cpp Sat Mar 29 22:44:50 2003
--- ./linepath.cpp Sat May 10 21:20:39 2003
***************
*** 44,49 ****
--- 44,51 ----
void LinePath::setAssociation(AssociationWidget * association ) {
if( !association )
return;
+ if (m_pAssociation)
+ m_LineList.clear();
m_pAssociation = association;
cleanup();
createHeadLines();
***************
*** 777,783 ****
}
void LinePath::cleanup() {
- m_LineList.clear();
m_HeadList.clear();
m_RectList.clear();
m_ParallelList.clear();
because the points read in from linePath::loadFromXMI()
where being wiped out right afterwards by the LinePath::
setAssociation call from the AssociationWidget::init().
But having applied that diff, I get no more association
(that has an anchor point) drawn at all !
I don't understand why.
The data would seem to be okay; at least the AssociationWidget's
m_pData->m_LinePath has the anchor points.
Perhaps it has something to do with the AssociationWidget::
calculateEndingPoints().
I'm not an expert here; your ideas are most welcome.
--Oliver
More information about the umbrello-devel
mailing list