diff options
author | Miklos Vajna <vmiklos@suse.cz> | 2012-08-09 12:11:57 +0200 |
---|---|---|
committer | Miklos Vajna <vmiklos@suse.cz> | 2012-08-09 12:12:55 +0200 |
commit | 5c6454f07b6f8e7b66892fda0111c02182180e92 (patch) | |
tree | 27f662f2ebec1618facaa2c14d844f03e947c22e /sw | |
parent | ab236e180c63a27c61d84ac9af738cf3cb930224 (diff) |
fdo#52960 SwCursor::SelectWordWT fix text selection in commented text ranges
Change-Id: Iabb1ac89163c2aa715c7631987886245fb96101c
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/core/crsr/swcrsr.cxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sw/source/core/crsr/swcrsr.cxx b/sw/source/core/crsr/swcrsr.cxx index e99d94885b6c..c1e0b401b90f 100644 --- a/sw/source/core/crsr/swcrsr.cxx +++ b/sw/source/core/crsr/swcrsr.cxx @@ -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; |