summaryrefslogtreecommitdiff
authorCédric Bosdonnat <cedricbosdo@openoffice.org>2011-02-11 16:34:43 (GMT)
committer Cédric Bosdonnat <cedricbosdo@openoffice.org>2011-02-11 16:34:52 (GMT)
commitbacb3f4f77949cd047eb3a6506074e3574182b34 (patch) (side-by-side diff)
treee63de5679782955fcd7d4b9a29742b7aa5303278
parent978cb6303a5c5c808952ec8cab6dbef4b0bab16d (diff)
downloadwriter-bacb3f4f77949cd047eb3a6506074e3574182b34.zip
writer-bacb3f4f77949cd047eb3a6506074e3574182b34.tar.gz
sw: fixed a crasher, fdo#32575
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--sw/source/ui/app/docsh2.cxx6
1 files changed, 4 insertions, 2 deletions
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,