diff options
Diffstat (limited to 'sw/source/core/unocore/unorefmk.cxx')
-rw-r--r-- | sw/source/core/unocore/unorefmk.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sw/source/core/unocore/unorefmk.cxx b/sw/source/core/unocore/unorefmk.cxx index c0ce5748a7c5..4b8ba9656142 100644 --- a/sw/source/core/unocore/unorefmk.cxx +++ b/sw/source/core/unocore/unorefmk.cxx @@ -286,7 +286,7 @@ throw (lang::IllegalArgumentException, uno::RuntimeException, std::exception) ::sw::UnoTunnelGetImplementation<OTextCursorHelper>(xRangeTunnel); } SwDoc *const pDocument = - (pRange) ? pRange->GetDoc() : ((pCursor) ? pCursor->GetDoc() : 0); + (pRange) ? &pRange->GetDoc() : ((pCursor) ? pCursor->GetDoc() : 0); if (!pDocument) { throw lang::IllegalArgumentException(); @@ -1013,7 +1013,7 @@ throw (lang::IllegalArgumentException, uno::RuntimeException) } SwDoc * const pDoc( - pRange ? pRange->GetDoc() : pCursor->GetDoc()); + pRange ? &pRange->GetDoc() : pCursor->GetDoc()); if (!pDoc) { throw lang::IllegalArgumentException( |