[Libreoffice-commits] core.git: sw/source
Caolán McNamara
caolanm at redhat.com
Fri Aug 19 14:12:55 UTC 2016
sw/source/core/doc/docfld.cxx | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
New commits:
commit 3196e949bb23a33bdb8700dbe27782e0e6c8f1e6
Author: Caolán McNamara <caolanm at redhat.com>
Date: Fri Aug 19 15:08:35 2016 +0100
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
diff --git a/sw/source/core/doc/docfld.cxx b/sw/source/core/doc/docfld.cxx
index 35e3696..56ef919 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;
More information about the Libreoffice-commits
mailing list