summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 )