Kaydet (Commit) e57d61f9 authored tarafından Noel Grandin's avatar Noel Grandin

the FontToSubsFontFlags enum is not a bitmask

Change-Id: I76a777a1da15df60f283b8f3fbfd36dd05244705
Reviewed-on: https://gerrit.libreoffice.org/64717
Tested-by: Jenkins
Reviewed-by: 's avatarNoel Grandin <noel.grandin@collabora.co.uk>
üst 504ae08d
...@@ -28,12 +28,8 @@ ...@@ -28,12 +28,8 @@
enum class FontToSubsFontFlags enum class FontToSubsFontFlags
{ {
IMPORT = 0x01, IMPORT = 0x01,
EXPORT = 0x02, EXPORT = 0x02
}; };
namespace o3tl
{
template<> struct typed_flags<FontToSubsFontFlags> : is_typed_flags<FontToSubsFontFlags, 0x03> {};
}
typedef void* FontToSubsFontConverter; typedef void* FontToSubsFontConverter;
UNOTOOLS_DLLPUBLIC FontToSubsFontConverter CreateFontToSubsFontConverter( const OUString& rFontName, FontToSubsFontFlags nFlags ); UNOTOOLS_DLLPUBLIC FontToSubsFontConverter CreateFontToSubsFontConverter( const OUString& rFontName, FontToSubsFontFlags nFlags );
......
...@@ -1387,7 +1387,7 @@ FontToSubsFontConverter CreateFontToSubsFontConverter( const OUString& rOrgName, ...@@ -1387,7 +1387,7 @@ FontToSubsFontConverter CreateFontToSubsFontConverter( const OUString& rOrgName,
OUString aName = GetEnglishSearchFontName( rOrgName ); OUString aName = GetEnglishSearchFontName( rOrgName );
if ( nFlags & FontToSubsFontFlags::IMPORT ) if ( nFlags == FontToSubsFontFlags::IMPORT )
{ {
const int nEntries = 2; // only StarMath+StarBats const int nEntries = 2; // only StarMath+StarBats
for( int i = 0; i < nEntries; ++i ) for( int i = 0; i < nEntries; ++i )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment