[Uml-devel] [ uml-Bugs-671735 ] SIGSEGV on printing (fwd)

Jonathan Riddell jr at jriddell.org
Tue Jan 21 15:31:05 UTC 2003


> I found out that in m_pIdList[0] has a value of 101 was. I don't know how
> these values are added to the different diagrams, but it looked a little bit
> bad.  So I searched around, when this value is set. It is done in the
> constructor.  But there doesn't seem to be an error. So I had to check, why
> ((UMLView*)m_pDoc->getCurrentView())->getID(); returns such a crazy value.
> Well, so you have to check if m_pDoc is ok. Well, I scrolled a little bit up
> and there I saw the line, which was wrong:
>
> m_pDoc = m_pDoc;
>
> I think it should be: this->m_pDoc = m_pDoc; But it is better to do this
> directly in the constructor:
>
> class::constructor(..., pointer_type * pointer):m_pointer(pointer)

Well done that man.

I'll wait a few days then probably put out a humble 1.1.1

Jonathan Riddell






More information about the umbrello-devel mailing list