From f346413e6258381d8e30825f22d8cd40fdf806bc Mon Sep 17 00:00:00 2001 From: Eduard Braun Date: Wed, 25 Oct 2017 23:05:44 +0200 Subject: Fix code accidentally made useless in de6d47ed290e02aa4bdc64d6cea5a6c8c20e61c7 --- src/libnrtype/FontFactory.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/libnrtype/FontFactory.cpp b/src/libnrtype/FontFactory.cpp index 2b1087eec..9c62e5483 100644 --- a/src/libnrtype/FontFactory.cpp +++ b/src/libnrtype/FontFactory.cpp @@ -936,7 +936,7 @@ void font_factory::AddFontsDir(char const *utf8dir) FcConfig *conf = NULL; # if PANGO_VERSION_CHECK(1,38,0) - pango_fc_font_map_get_config(PANGO_FC_FONT_MAP(fontServer)); + conf = pango_fc_font_map_get_config(PANGO_FC_FONT_MAP(fontServer)); # endif FcBool res = FcConfigAppFontAddDir(conf, (FcChar8 const *)dir); if (res = FcTrue) { @@ -968,7 +968,7 @@ void font_factory::AddFontFile(char const *utf8file) FcConfig *conf = NULL; # if PANGO_VERSION_CHECK(1,38,0) - pango_fc_font_map_get_config(PANGO_FC_FONT_MAP(fontServer)); + conf = pango_fc_font_map_get_config(PANGO_FC_FONT_MAP(fontServer)); # endif FcBool res = FcConfigAppFontAddFile(conf, (FcChar8 const *)file); if (res = FcTrue) { -- cgit v1.2.3