diff options
author | Michael Stahl <mstahl@redhat.com> | 2017-04-06 14:27:31 +0200 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2017-04-06 15:00:47 +0200 |
commit | 3510a0e2245e619a2e2518f8702686d608522cdf (patch) | |
tree | f108bf12ba3c14b727ae3fd50952a32f477e2967 /external | |
parent | 6768a9b602c5cd6b4702faf862cac60527bded99 (diff) |
libmwaw: fix MSVC2017 "invalid comparator" assert
Change-Id: Ic1ace8da86d6306d1cc3d3b124a236bf794cc7be
Diffstat (limited to 'external')
-rw-r--r-- | external/libmwaw/UnpackedTarball_libmwaw.mk | 1 | ||||
-rwxr-xr-x | external/libmwaw/libmwaw-fix-compare-assert.patch.1 | 13 |
2 files changed, 14 insertions, 0 deletions
diff --git a/external/libmwaw/UnpackedTarball_libmwaw.mk b/external/libmwaw/UnpackedTarball_libmwaw.mk index ce283807e490..de99d5685378 100644 --- a/external/libmwaw/UnpackedTarball_libmwaw.mk +++ b/external/libmwaw/UnpackedTarball_libmwaw.mk @@ -37,6 +37,7 @@ endif $(eval $(call gb_UnpackedTarball_add_patches,libmwaw,\ external/libmwaw/0001-fix-build-with-MSVC.patch.1 \ + external/libmwaw/libmwaw-fix-compare-assert.patch.1 \ )) # vim: set noet sw=4 ts=4: diff --git a/external/libmwaw/libmwaw-fix-compare-assert.patch.1 b/external/libmwaw/libmwaw-fix-compare-assert.patch.1 new file mode 100755 index 000000000000..d7dae34a90bb --- /dev/null +++ b/external/libmwaw/libmwaw-fix-compare-assert.patch.1 @@ -0,0 +1,13 @@ +Assertion failed: invalid comparator + +--- libmwaw/src/lib/MWAWFont.hxx.orig 2017-04-06 14:19:52.751000000 +0200 ++++ libmwaw/src/lib/MWAWFont.hxx 2017-04-06 13:50:51.385400000 +0200 +@@ -505,7 +505,7 @@ + int diff = id() - oth.id(); + if (diff != 0) return diff; + if (size() < oth.size()) return -1; +- if (size() > oth.size()) return -1; ++ if (size() > oth.size()) return 1; + if (m_sizeIsRelative.get() != oth.m_sizeIsRelative.get()) return m_sizeIsRelative.get() ? 1 : -1; + if (flags() < oth.flags()) return -1; + if (flags() > oth.flags()) return 1; |