To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=104594


User aw changed the following:

                What    |Old value                 |New value
================================================================================
             Assigned to|aw                        |fs
--------------------------------------------------------------------------------




------- Additional comments from a...@openoffice.org Thu Sep 10 14:06:16 +0000 
2009 -------
AW->FS: In ViewObjectContactOfUnoControl_Impl::imp_getPageViewDevice_nothrow(),
the dynamic_cast< ObjectContactOfPageView* >( &m_pAntiImpl->GetObjectContact() )
may also be (like in this case) an ObjectContactOfObjListPainter. The
ObjectContactOfPageView is NOT the only valid derivation of an ObjectContact.
To securely derive SdrPageView* is to use
GetObjectContact().TryToGetSdrPageView() and check the return value against 
zero.
It is also not good to assert that an ObjectContactOfPageView is needed, but to
continue execution and rash (my 2 cents).
A ObjectContactOfObjListPainter is used since the GraphicExporter is used to
export a MetaFile for Slideshow. ObjectContactOfObjListPainter overloads
TryToGetOutputDevice() (anyways more that what You need instead of
TryToGetSdrPageView()), so when You need the target OutputDevice,
TryToGetOutputDevice() is Your friend (and please, check the return value).


---------------------------------------------------------------------
Please do not reply to this automatically generated notification from
Issue Tracker. Please log onto the website and enter your comments.
http://qa.openoffice.org/issue_handling/project_issues.html#notification

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@graphics.openoffice.org
For additional commands, e-mail: issues-h...@graphics.openoffice.org


---------------------------------------------------------------------
To unsubscribe, e-mail: allbugs-unsubscr...@openoffice.org
For additional commands, e-mail: allbugs-h...@openoffice.org

Reply via email to