summaryrefslogtreecommitdiffstats
path: root/tdeui/tdeactionclasses.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tdeui/tdeactionclasses.cpp')
-rw-r--r--tdeui/tdeactionclasses.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/tdeui/tdeactionclasses.cpp b/tdeui/tdeactionclasses.cpp
index 4b589f166..80f646869 100644
--- a/tdeui/tdeactionclasses.cpp
+++ b/tdeui/tdeactionclasses.cpp
@@ -1506,12 +1506,13 @@ void TDEFontAction::setFont( const TQString &family )
// check again to solve an alias
FcPattern *pattern = NULL;
FcConfig *config = NULL;
+ FcResult result;
TQString realFamily;
TQRegExp regExp("[-:]");
pattern = FcNameParse( (unsigned char*) family.ascii() );
FcDefaultSubstitute(pattern);
FcConfigSubstitute (config, pattern, FcMatchPattern);
- pattern = FcFontMatch(NULL, pattern, NULL);
+ pattern = FcFontMatch(NULL, pattern, &result);
realFamily = (char*)FcNameUnparse(pattern);
realFamily.remove(realFamily.find(regExp), realFamily.length());