[Libreoffice-commits] core.git: editeng/source include/svtools svtools/source
Caolán McNamara
caolanm at redhat.com
Wed Dec 10 05:15:14 PST 2014
editeng/source/editeng/eertfpar.cxx | 7 +++++++
include/svtools/rtftoken.h | 1 +
svtools/source/svrtf/rtfkeywd.cxx | 2 ++
3 files changed, 10 insertions(+)
New commits:
commit e77c573811dd9d685f2e7e936edc62963739800f
Author: Caolán McNamara <caolanm at redhat.com>
Date: Wed Dec 10 12:54:46 2014 +0000
fdo#76776 crashes after paste a table from Writer
Change-Id: If859352a7d8d409e5c3c651e0ffea0b3687007db
diff --git a/editeng/source/editeng/eertfpar.cxx b/editeng/source/editeng/eertfpar.cxx
index 4eb6a03..e3ab1db 100644
--- a/editeng/source/editeng/eertfpar.cxx
+++ b/editeng/source/editeng/eertfpar.cxx
@@ -197,6 +197,13 @@ void EditRTFParser::NextToken( int nToken )
ReadField();
}
break;
+ case RTF_SHPINST: // fdo#76776 process contents of shpinst
+ break;
+ case RTF_SP: // fdo#76776 but skip SP groups
+ {
+ SkipGroup();
+ }
+ break;
case RTF_PGDSCTBL: // #i29453# ignore \*\pgdsctbl destination
case RTF_LISTTEXT:
{
diff --git a/include/svtools/rtftoken.h b/include/svtools/rtftoken.h
index b799526..cb23f30 100644
--- a/include/svtools/rtftoken.h
+++ b/include/svtools/rtftoken.h
@@ -1100,6 +1100,7 @@ enum RTF_TOKEN_IDS {
RTF_SHPTXT,
RTF_SHPFHDR,
RTF_SHPGRP,
+ RTF_SHPINST,
RTF_SHPRIGHT,
RTF_SHPFBLWTXT,
RTF_SHPZ,
diff --git a/svtools/source/svrtf/rtfkeywd.cxx b/svtools/source/svrtf/rtfkeywd.cxx
index 18f7ad1..ef032a5 100644
--- a/svtools/source/svrtf/rtfkeywd.cxx
+++ b/svtools/source/svrtf/rtfkeywd.cxx
@@ -1000,6 +1000,7 @@ static RTF_TokenEntry aRTFTokenTab[] = {
{{OOO_STRING_SVTOOLS_RTF_SHPFBLWTXT}, RTF_SHPFBLWTXT},
{{OOO_STRING_SVTOOLS_RTF_SHPFHDR}, RTF_SHPFHDR},
{{OOO_STRING_SVTOOLS_RTF_SHPGRP}, RTF_SHPGRP},
+{{OOO_STRING_SVTOOLS_RTF_SHPINST}, RTF_SHPINST},
{{OOO_STRING_SVTOOLS_RTF_SHPLEFT}, RTF_SHPLEFT},
{{OOO_STRING_SVTOOLS_RTF_SHPLID}, RTF_SHPLID},
{{OOO_STRING_SVTOOLS_RTF_SHPLOCKANCHOR}, RTF_SHPLOCKANCHOR},
@@ -1227,6 +1228,7 @@ int GetRTFToken( const OUString& rSearch )
sizeof( RTF_TokenEntry ),
RTFKeyCompare )))
nRet = ((RTF_TokenEntry*)pFound)->nToken;
+
return nRet;
}
More information about the Libreoffice-commits
mailing list