[Uml-devel] AssociationWidget/AssociationWidgetData merge

Oliver Kellogg Oliver.Kellogg at t-online.de
Sun May 11 22:43:11 UTC 2003


While working on bug 54575, I see that the AssociationWidgetData
cruft is still around.

Anyone working on getting rid of it?
If not, I'll do it.

--Oliver


In [Bug 54575] association anchor points not saved, Oliver Kellogg wrote:
>
> ------- 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
>
>
> -------------------------------------------------------
> Enterprise Linux Forum Conference & Expo, June 4-6, 2003, Santa Clara
> The only event dedicated to issues related to Linux enterprise solutions
> www.enterpriselinuxforum.com
>
> _______________________________________________
> Uml-devel mailing list
> umbrello-devel at kde.org
> https://mail.kde.org/mailman/listinfo/umbrello-devel





More information about the umbrello-devel mailing list