diff options
author | Caolán McNamara <caolanm@redhat.com> | 2016-08-19 15:08:35 +0100 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2016-08-24 12:08:11 +0000 |
commit | 299f223295913a60fed33f9adb08a15f4f83a6d3 (patch) | |
tree | fb438663742d999aa333ec502239be86abb664ec | |
parent | fc79186d80ffa8e734727c555456165af6dd51c4 (diff) |
Resolves: tdf#100901 crash pressing tab in r-o document with hyperlink
rather odd union in use here. Trying to call SwTextField::GetStart
on SwTextINetFormat blows up under visual studio.
Change-Id: Ic8145d7645bd6a68ef19e018311a4de6e6958bcb
(cherry picked from commit 3196e949bb23a33bdb8700dbe27782e0e6c8f1e6)
Reviewed-on: https://gerrit.libreoffice.org/28244
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Michael Stahl <mstahl@redhat.com>
-rw-r--r-- | sw/source/core/doc/docfld.cxx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sw/source/core/doc/docfld.cxx b/sw/source/core/doc/docfld.cxx index e0c6b2bc86df..9da5e76749c1 100644 --- a/sw/source/core/doc/docfld.cxx +++ b/sw/source/core/doc/docfld.cxx @@ -322,9 +322,11 @@ sal_Int32 _SetGetExpField::GetCntPosFromContent() const switch( eSetGetExpFieldType ) { case TEXTFIELD: - case TEXTINET: nRet = CNTNT.pTextField->GetStart(); break; + case TEXTINET: + nRet = CNTNT.pTextINet->GetStart(); + break; case TEXTTOXMARK: nRet = CNTNT.pTextTOX->GetStart(); break; |