Bugzilla – Attachment 54574 Details for
Bug 43867
MAILMERGE: Mail Merge with ole object in header of document, causes crash. SfxObjectShell::GetEmbeddedObjectContainer
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
hack to not crash anyway, doesn't help get the right output however :-)
sw.hack.nocrash.patch (text/plain), 770 bytes, created by
Caolán McNamara
on 2011-12-19 09:05:46 UTC
(
hide
)
Description:
hack to not crash anyway, doesn't help get the right output however :-)
Filename:
MIME Type:
Creator:
Caolán McNamara
Created:
2011-12-19 09:05:46 UTC
Size:
770 bytes
patch
obsolete
>diff --git a/sw/source/core/ole/ndole.cxx b/sw/source/core/ole/ndole.cxx >index c49a2f6..012f703 100644 >--- a/sw/source/core/ole/ndole.cxx >+++ b/sw/source/core/ole/ndole.cxx >@@ -768,6 +768,12 @@ const uno::Reference < embed::XEmbeddedObject > SwOLEObj::GetOleRef() > SfxObjectShell* p = pOLENd->GetDoc()->GetPersist(); > OSL_ENSURE( p, "kein SvPersist vorhanden" ); > >+ if( !p ) >+ { >+ p = new SwDocShell( const_cast<SwDoc*>(pOLENd->GetDoc()), SFX_CREATE_MODE_INTERNAL ); >+ p->DoInitNew( NULL ); >+ } >+ > uno::Reference < embed::XEmbeddedObject > xObj = p->GetEmbeddedObjectContainer().GetEmbeddedObject( aName ); > OSL_ENSURE( !xOLERef.is(), "rekursiver Aufruf von GetOleRef() ist nicht erlaubt" ); >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 43867
:
54474
| 54574