Issue 81352 - SdrOle2Obj: replacement graphic can be stored at too many places
Summary: SdrOle2Obj: replacement graphic can be stored at too many places
Status: CONFIRMED
Alias: None
Product: General
Classification: Code
Component: code (show other issues)
Version: OOo 1.0.0
Hardware: All All
: P3 Trivial (vote)
Target Milestone: ---
Assignee: AOO issues mailing list
QA Contact:
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-09-07 10:38 UTC by sven.jacobi
Modified: 2017-05-20 10:55 UTC (History)
1 user (show)

See Also:
Issue Type: TASK
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description sven.jacobi 2007-09-07 10:38:11 UTC
At the moment it is not clear how to properly set a replacement graphic at the
SdrOle2Obj (svx/inc/svdoole2.obj) object. It can be stored in too many places:

pGraphic,
mpImpl->pGraphicObject
and xObjRef.SetGraphic( aGraphic, aMediaType )

So pGraphic and mpImpl->pGraphicObject should be removed, so that the only true
graphic is available at the xObjRef.

Additionally following methods should be removed then:
void        SetGraphic(const Graphic* pGrf);
Graphic*    GetGraphic() const;
Comment 1 Mathias_Bauer 2007-09-07 17:32:17 UTC
Be aware that there are objects in Impress where xObjRef is empty but pGraphics
is not NULL! These are special objects that contain placeholder graphics where
an OLE object shall be inserted on a click.
Comment 2 Mathias_Bauer 2007-10-05 14:49:26 UTC
target 3.x
Comment 3 Marcus 2017-05-20 10:55:48 UTC
Reset assigne to the default "issues@openoffice.apache.org".