diff options
author | David Tardon <dtardon@redhat.com> | 2014-11-24 11:41:04 +0100 |
---|---|---|
committer | David Tardon <dtardon@redhat.com> | 2014-11-24 11:41:04 +0100 |
commit | 4578ed5b0ae63850704027861b3d475d818ead33 (patch) | |
tree | 6737b541c2943b93197e2df286eb2cad30ca7bec /external/libodfgen | |
parent | Newly missing #include (diff) | |
download | core-4578ed5b0ae63850704027861b3d475d818ead33.tar.gz core-4578ed5b0ae63850704027861b3d475d818ead33.zip |
upload libodfgen 0.1.2
Change-Id: I9a4719e60f910256c529551fdbb387e98aefd6ce
Diffstat (limited to 'external/libodfgen')
-rw-r--r-- | external/libodfgen/ExternalPackage_libodfgen.mk | 2 | ||||
-rw-r--r-- | external/libodfgen/UnpackedTarball_libodfgen.mk | 4 | ||||
-rw-r--r-- | external/libodfgen/ubsan.patch | 60 |
3 files changed, 1 insertions, 65 deletions
diff --git a/external/libodfgen/ExternalPackage_libodfgen.mk b/external/libodfgen/ExternalPackage_libodfgen.mk index 74423b48be10..0c05876afe1e 100644 --- a/external/libodfgen/ExternalPackage_libodfgen.mk +++ b/external/libodfgen/ExternalPackage_libodfgen.mk @@ -16,7 +16,7 @@ $(eval $(call gb_ExternalPackage_add_file,libodfgen,$(LIBO_LIB_FOLDER)/libodfgen else ifeq ($(OS),WNT) $(eval $(call gb_ExternalPackage_add_file,libodfgen,$(LIBO_LIB_FOLDER)/libodfgen-0.1.dll,src/.libs/libodfgen-0.1.dll)) else ifeq ($(filter IOS ANDROID,$(OS)),) -$(eval $(call gb_ExternalPackage_add_file,libodfgen,$(LIBO_LIB_FOLDER)/libodfgen-0.1.so.1,src/.libs/libodfgen-0.1.so.1.0.1)) +$(eval $(call gb_ExternalPackage_add_file,libodfgen,$(LIBO_LIB_FOLDER)/libodfgen-0.1.so.1,src/.libs/libodfgen-0.1.so.1.0.2)) endif # vim: set noet sw=4 ts=4: diff --git a/external/libodfgen/UnpackedTarball_libodfgen.mk b/external/libodfgen/UnpackedTarball_libodfgen.mk index 66707ddc4c92..bb2153f5790a 100644 --- a/external/libodfgen/UnpackedTarball_libodfgen.mk +++ b/external/libodfgen/UnpackedTarball_libodfgen.mk @@ -13,8 +13,4 @@ $(eval $(call gb_UnpackedTarball_set_tarball,libodfgen,$(ODFGEN_TARBALL))) $(eval $(call gb_UnpackedTarball_set_patchlevel,libodfgen,0)) -$(eval $(call gb_UnpackedTarball_add_patches,libodfgen, \ - external/libodfgen/ubsan.patch \ -)) - # vim: set noet sw=4 ts=4: diff --git a/external/libodfgen/ubsan.patch b/external/libodfgen/ubsan.patch deleted file mode 100644 index 0b807dded872..000000000000 --- a/external/libodfgen/ubsan.patch +++ /dev/null @@ -1,60 +0,0 @@ -See <https://sourceforge.net/p/libwpd/tickets/2/attachment/0001-Avoid-undefined-behavior-casts-from-potentially-nega.patch>: ---- src/GraphicFunctions.cxx -+++ src/GraphicFunctions.cxx -@@ -448,42 +448,42 @@ - // 2540 is 2.54*1000, 2.54 in = 1 inch - if (path[i]["svg:x"] && action[0] == 'H') - { -- sElement.sprintf("H%i", (unsigned)((getInchValue(path[i]["svg:x"])-px)*2540)); -+ sElement.sprintf("H%i", (int)((getInchValue(path[i]["svg:x"])-px)*2540)); - sValue.append(sElement); - } - else if (path[i]["svg:y"] && action[0] == 'V') - { -- sElement.sprintf("V%i", (unsigned)((getInchValue(path[i]["svg:y"])-py)*2540)); -+ sElement.sprintf("V%i", (int)((getInchValue(path[i]["svg:y"])-py)*2540)); - sValue.append(sElement); - } - else if (coordOk && (action[0] == 'M' || action[0] == 'L' || action[0] == 'T')) - { -- sElement.sprintf("%c%i %i", action[0], (unsigned)((getInchValue(path[i]["svg:x"])-px)*2540), -- (unsigned)((getInchValue(path[i]["svg:y"])-py)*2540)); -+ sElement.sprintf("%c%i %i", action[0], (int)((getInchValue(path[i]["svg:x"])-px)*2540), -+ (int)((getInchValue(path[i]["svg:y"])-py)*2540)); - sValue.append(sElement); - } - else if (coord1Ok && (action[0] == 'Q' || action[0] == 'S')) - { -- sElement.sprintf("%c%i %i %i %i", action[0], (unsigned)((getInchValue(path[i]["svg:x1"])-px)*2540), -- (unsigned)((getInchValue(path[i]["svg:y1"])-py)*2540), (unsigned)((getInchValue(path[i]["svg:x"])-px)*2540), -- (unsigned)((getInchValue(path[i]["svg:y"])-py)*2540)); -+ sElement.sprintf("%c%i %i %i %i", action[0], (int)((getInchValue(path[i]["svg:x1"])-px)*2540), -+ (int)((getInchValue(path[i]["svg:y1"])-py)*2540), (int)((getInchValue(path[i]["svg:x"])-px)*2540), -+ (int)((getInchValue(path[i]["svg:y"])-py)*2540)); - sValue.append(sElement); - } - else if (coord2Ok && action[0] == 'C') - { -- sElement.sprintf("C%i %i %i %i %i %i", (unsigned)((getInchValue(path[i]["svg:x1"])-px)*2540), -- (unsigned)((getInchValue(path[i]["svg:y1"])-py)*2540), (unsigned)((getInchValue(path[i]["svg:x2"])-px)*2540), -- (unsigned)((getInchValue(path[i]["svg:y2"])-py)*2540), (unsigned)((getInchValue(path[i]["svg:x"])-px)*2540), -- (unsigned)((getInchValue(path[i]["svg:y"])-py)*2540)); -+ sElement.sprintf("C%i %i %i %i %i %i", (int)((getInchValue(path[i]["svg:x1"])-px)*2540), -+ (int)((getInchValue(path[i]["svg:y1"])-py)*2540), (int)((getInchValue(path[i]["svg:x2"])-px)*2540), -+ (int)((getInchValue(path[i]["svg:y2"])-py)*2540), (int)((getInchValue(path[i]["svg:x"])-px)*2540), -+ (int)((getInchValue(path[i]["svg:y"])-py)*2540)); - sValue.append(sElement); - } - else if (coordOk && path[i]["svg:rx"] && path[i]["svg:ry"] && action[0] == 'A') - { -- sElement.sprintf("A%i %i %i %i %i %i %i", (unsigned)((getInchValue(path[i]["svg:rx"]))*2540), -- (unsigned)((getInchValue(path[i]["svg:ry"]))*2540), (path[i]["librevenge:rotate"] ? path[i]["librevenge:rotate"]->getInt() : 0), -+ sElement.sprintf("A%i %i %i %i %i %i %i", (int)((getInchValue(path[i]["svg:rx"]))*2540), -+ (int)((getInchValue(path[i]["svg:ry"]))*2540), (path[i]["librevenge:rotate"] ? path[i]["librevenge:rotate"]->getInt() : 0), - (path[i]["librevenge:large-arc"] ? path[i]["librevenge:large-arc"]->getInt() : 1), - (path[i]["librevenge:sweep"] ? path[i]["librevenge:sweep"]->getInt() : 1), -- (unsigned)((getInchValue(path[i]["svg:x"])-px)*2540), (unsigned)((getInchValue(path[i]["svg:y"])-py)*2540)); -+ (int)((getInchValue(path[i]["svg:x"])-px)*2540), (int)((getInchValue(path[i]["svg:y"])-py)*2540)); - sValue.append(sElement); - } - else if (action[0] == 'Z') |