diff options
author | Fridrich Štrba <fridrich.strba@bluewin.ch> | 2013-04-07 22:15:09 +0200 |
---|---|---|
committer | Fridrich Štrba <fridrich.strba@bluewin.ch> | 2013-04-07 22:50:33 +0200 |
commit | 29339357cfba19e80c3687639fe33e847d3e6f93 (patch) | |
tree | 298e13d5b50af924166db978e01808ca5dd9ffac /libcdr | |
parent | 86f8fba8e7b13f9ba6c4c9f3cdc19ba39044e552 (diff) |
Uploading libcdr-0.0.12: fixing fdo#62538 and fdo#53278
Change-Id: Ia7121c5e77ac86941fc70e08d1c824a93e842aff
Diffstat (limited to 'libcdr')
-rw-r--r-- | libcdr/UnpackedTarball_cdr.mk | 6 | ||||
-rw-r--r-- | libcdr/libcdr-0.0.11-encoding.patch | 36 |
2 files changed, 0 insertions, 42 deletions
diff --git a/libcdr/UnpackedTarball_cdr.mk b/libcdr/UnpackedTarball_cdr.mk index 1c77ebd1ec6b..be1e7d762a87 100644 --- a/libcdr/UnpackedTarball_cdr.mk +++ b/libcdr/UnpackedTarball_cdr.mk @@ -11,10 +11,4 @@ $(eval $(call gb_UnpackedTarball_UnpackedTarball,cdr)) $(eval $(call gb_UnpackedTarball_set_tarball,cdr,$(CDR_TARBALL))) -$(eval $(call gb_UnpackedTarball_set_patchlevel,cdr,1)) - -$(eval $(call gb_UnpackedTarball_add_patches,cdr,\ - libcdr/libcdr-0.0.11-encoding.patch \ -)) - # vim: set noet sw=4 ts=4: diff --git a/libcdr/libcdr-0.0.11-encoding.patch b/libcdr/libcdr-0.0.11-encoding.patch deleted file mode 100644 index 73fa58a1a4c7..000000000000 --- a/libcdr/libcdr-0.0.11-encoding.patch +++ /dev/null @@ -1,36 +0,0 @@ ---- a/src/lib/CDRParser.cpp -+++ b/src/lib/CDRParser.cpp -@@ -2415,7 +2415,8 @@ void libcdr::CDRParser::readStlt(WPXInputStream *input, unsigned length) - } - unsigned numFonts = readU32(input); - CDR_DEBUG_MSG(("CDRParser::readStlt numFonts 0x%x\n", numFonts)); -- std::map<unsigned,unsigned> fontIds; -+ std::map<unsigned,unsigned short> fontIds; -+ std::map<unsigned,unsigned short> fontEncodings; - std::map<unsigned,double> fontSizes; - for (i=0; i<numFonts; ++i) - { -@@ -2424,7 +2425,8 @@ void libcdr::CDRParser::readStlt(WPXInputStream *input, unsigned length) - input->seek(12, WPX_SEEK_CUR); - else - input->seek(20, WPX_SEEK_CUR); -- fontIds[fontStyleId] = readU32(input); -+ fontIds[fontStyleId] = readU16(input); -+ fontEncodings[fontStyleId] = readU16(input); - input->seek(8, WPX_SEEK_CUR); - fontSizes[fontStyleId] = readCoordinate(input); - if (m_version < 1000) -@@ -2578,9 +2580,12 @@ void libcdr::CDRParser::readStlt(WPXInputStream *input, unsigned length) - } - if (!fontRecordId) - continue; -- std::map<unsigned, unsigned>::const_iterator iterFontId = fontIds.find(fontRecordId); -+ std::map<unsigned, unsigned short>::const_iterator iterFontId = fontIds.find(fontRecordId); - if (iterFontId != fontIds.end()) - tmpCharStyle.m_fontId = iterFontId->second; -+ std::map<unsigned, unsigned short>::const_iterator iterCharSet = fontEncodings.find(fontRecordId); -+ if (iterCharSet != fontEncodings.end()) -+ tmpCharStyle.m_charSet = iterCharSet->second; - std::map<unsigned, double>::const_iterator iterFontSize = fontSizes.find(fontRecordId); - if (iterFontSize != fontSizes.end()) - tmpCharStyle.m_fontSize = iterFontSize->second; |