[Libreoffice-commits] .: sw/source

Cédric Bosdonnat cbosdo at kemper.freedesktop.org
Fri Feb 11 08:34:59 PST 2011


 sw/source/ui/app/docsh2.cxx |    6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

New commits:
commit bacb3f4f77949cd047eb3a6506074e3574182b34
Author: Cédric Bosdonnat <cedricbosdo at openoffice.org>
Date:   Fri Feb 11 17:34:43 2011 +0100

    sw: fixed a crasher, fdo#32575

diff --git a/sw/source/ui/app/docsh2.cxx b/sw/source/ui/app/docsh2.cxx
index 553b95d..a0ff876 100644
--- a/sw/source/ui/app/docsh2.cxx
+++ b/sw/source/ui/app/docsh2.cxx
@@ -1476,8 +1476,10 @@ long SwDocShell::DdeSetData( const String& rItem, const String& rMimeType,
 
 void SwDocShell::ReconnectDdeLink(SfxObjectShell& rServer)
 {
-    ::sfx2::LinkManager& rLinkManager = pDoc->GetLinkManager();
-    rLinkManager.ReconnectDdeLink(rServer);
+    if ( pDoc ) {
+        ::sfx2::LinkManager& rLinkManager = pDoc->GetLinkManager();
+        rLinkManager.ReconnectDdeLink(rServer);
+    }
 }
 
 void SwDocShell::FillClass( SvGlobalName * pClassName,


More information about the Libreoffice-commits mailing list