summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2018-12-05 17:00:48 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-12-07 07:39:31 +0100
commite57d61f9c052c4ebb3f940a67ed6dddf26ad5cf0 (patch)
tree2c8bebca0f99cf07c73384e9f13c405c4c6fa4e9
parent504ae08d8ca7755106926326e8cde8ed015bd2ee (diff)
the FontToSubsFontFlags enum is not a bitmask
Change-Id: I76a777a1da15df60f283b8f3fbfd36dd05244705 Reviewed-on: https://gerrit.libreoffice.org/64717 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
-rw-r--r--include/unotools/fontcvt.hxx6
-rw-r--r--unotools/source/misc/fontcvt.cxx2
2 files changed, 2 insertions, 6 deletions
diff --git a/include/unotools/fontcvt.hxx b/include/unotools/fontcvt.hxx
index f24a5e3e48ae..2877e18972ea 100644
--- a/include/unotools/fontcvt.hxx
+++ b/include/unotools/fontcvt.hxx
@@ -28,12 +28,8 @@
enum class FontToSubsFontFlags
{
IMPORT = 0x01,
- EXPORT = 0x02,
+ EXPORT = 0x02
};
-namespace o3tl
-{
- template<> struct typed_flags<FontToSubsFontFlags> : is_typed_flags<FontToSubsFontFlags, 0x03> {};
-}
typedef void* FontToSubsFontConverter;
UNOTOOLS_DLLPUBLIC FontToSubsFontConverter CreateFontToSubsFontConverter( const OUString& rFontName, FontToSubsFontFlags nFlags );
diff --git a/unotools/source/misc/fontcvt.cxx b/unotools/source/misc/fontcvt.cxx
index 8a47fdb27495..663954c1bfc1 100644
--- a/unotools/source/misc/fontcvt.cxx
+++ b/unotools/source/misc/fontcvt.cxx
@@ -1387,7 +1387,7 @@ FontToSubsFontConverter CreateFontToSubsFontConverter( const OUString& rOrgName,
OUString aName = GetEnglishSearchFontName( rOrgName );
- if ( nFlags & FontToSubsFontFlags::IMPORT )
+ if ( nFlags == FontToSubsFontFlags::IMPORT )
{
const int nEntries = 2; // only StarMath+StarBats
for( int i = 0; i < nEntries; ++i )