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
This commit is contained in:
Kurt Zenker 2008-05-06 11:03:31 +00:00
parent 2eb01eb48c
commit d5aeaa5b58

View file

@ -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));