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:
parent
2eb01eb48c
commit
d5aeaa5b58
1 changed files with 2 additions and 2 deletions
|
@ -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));
|
||||
|
|
Loading…
Reference in a new issue