fdo#52960 SwCursor::SelectWordWT fix text selection in commented text ranges
Change-Id: Iabb1ac89163c2aa715c7631987886245fb96101c
This commit is contained in:
parent
ab236e180c
commit
5c6454f07b
1 changed files with 3 additions and 2 deletions
|
@ -57,6 +57,7 @@
|
|||
#include <mdiexp.hxx>
|
||||
#include <statstr.hrc>
|
||||
#include <redline.hxx>
|
||||
#include <xmloff/odffields.hxx>
|
||||
|
||||
using namespace ::com::sun::star::i18n;
|
||||
|
||||
|
@ -1341,8 +1342,8 @@ sal_Bool SwCursor::SelectWordWT( ViewShell* pViewShell, sal_Int16 nWordType, con
|
|||
{
|
||||
// Should we select the whole fieldmark?
|
||||
const IDocumentMarkAccess* pMarksAccess = GetDoc()->getIDocumentMarkAccess( );
|
||||
sw::mark::IMark* pMark = GetPoint() ? pMarksAccess->getFieldmarkFor( *GetPoint( ) ) : NULL;
|
||||
if ( pMark )
|
||||
sw::mark::IFieldmark* pMark = GetPoint() ? pMarksAccess->getFieldmarkFor( *GetPoint( ) ) : NULL;
|
||||
if ( pMark && pMark->GetFieldname() != ODF_COMMENTRANGE )
|
||||
{
|
||||
const SwPosition rStart = pMark->GetMarkStart();
|
||||
GetPoint()->nNode = rStart.nNode;
|
||||
|
|
Loading…
Reference in a new issue