summaryrefslogtreecommitdiff
path: root/sw/source/ui/uno
diff options
context:
space:
mode:
authorKurt Zenker <kz@openoffice.org>2008-05-06 11:03:31 +0000
committerKurt Zenker <kz@openoffice.org>2008-05-06 11:03:31 +0000
commitd5aeaa5b58153ab8ddcce26e7f93fdc439aff61d (patch)
treef4ce53a4d5de2d6c420fb682bdc18aaaf776cdbc /sw/source/ui/uno
parent2eb01eb48c28f9a3ec6418b6028e3a17a3e60aab (diff)
INTEGRATION: CWS os112 (1.38.200); FILE MERGED
2008/04/08 07:37:46 os 1.38.200.2: RESYNC: (1.38-1.40); FILE MERGED 2008/04/01 07:38:12 os 1.38.200.1: #i85319# check bookmark from SwXTextRange
Diffstat (limited to 'sw/source/ui/uno')
-rw-r--r--sw/source/ui/uno/unoatxt.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sw/source/ui/uno/unoatxt.cxx b/sw/source/ui/uno/unoatxt.cxx
index 26a4338355f2..ffae96e30010 100644
--- a/sw/source/ui/uno/unoatxt.cxx
+++ b/sw/source/ui/uno/unoatxt.cxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: unoatxt.cxx,v $
- * $Revision: 1.41 $
+ * $Revision: 1.42 $
*
* This file is part of OpenOffice.org.
*
@@ -422,7 +422,7 @@ sal_Bool lcl_CopySelToDoc( SwDoc* pInsDoc, OTextCursorHelper* pxCursor, SwXTextR
else
{
SwBookmark* pBkm = pxRange->GetBookmark();
- if(pBkm->GetOtherBookmarkPos())
+ if(pBkm && pBkm->GetOtherBookmarkPos())
{
SwPaM aTmp(*pBkm->GetOtherBookmarkPos(), pBkm->GetBookmarkPos());
bRet |= (true == pxRange->GetDoc()->Copy(aTmp, aPos));