summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2016-08-19 15:08:35 +0100
committerAndras Timar <andras.timar@collabora.com>2016-09-01 12:13:26 +0200
commit14088fb841e6287aa8ce1b001482fe912196258e (patch)
tree5eeb4aa44a61d9a3a921c6dbd7434c05441ade14 /sw
parent945d7d44072e7a8d7d460c662729ad3cc7334ba2 (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> (cherry picked from commit 299f223295913a60fed33f9adb08a15f4f83a6d3)
Diffstat (limited to 'sw')
-rw-r--r--sw/source/core/doc/docfld.cxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/sw/source/core/doc/docfld.cxx b/sw/source/core/doc/docfld.cxx
index 7abc9ab99857..7678096cc0e5 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;