[Libreoffice-commits] core.git: Branch 'libreoffice-5-1' - sw/source
Caolán McNamara
caolanm at redhat.com
Wed Aug 24 12:08:35 UTC 2016
sw/source/core/doc/docfld.cxx | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
New commits:
commit 299f223295913a60fed33f9adb08a15f4f83a6d3
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
(cherry picked from commit 3196e949bb23a33bdb8700dbe27782e0e6c8f1e6)
Reviewed-on: https://gerrit.libreoffice.org/28244
Tested-by: Jenkins <ci at libreoffice.org>
Reviewed-by: Michael Stahl <mstahl at redhat.com>
diff --git a/sw/source/core/doc/docfld.cxx b/sw/source/core/doc/docfld.cxx
index e0c6b2b..9da5e76 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