summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMorten Sørvig <msorvig@trolltech.com>2009-07-30 11:41:34 (GMT)
committerMorten Sørvig <msorvig@trolltech.com>2009-07-30 11:41:34 (GMT)
commit1fa620be2794b46a9b5d867ae6b2d7fa844b610c (patch)
tree809540ca556f6fd3aaa3d20c4fbe0acfec1a5c2a /src
parentf752633b878840634ca374fb9c1e8755aa1fd886 (diff)
downloadQt-1fa620be2794b46a9b5d867ae6b2d7fa844b610c.zip
Qt-1fa620be2794b46a9b5d867ae6b2d7fa844b610c.tar.gz
Qt-1fa620be2794b46a9b5d867ae6b2d7fa844b610c.tar.bz2
Mac: Fix crash in QCoreTextFontEngineMulti when disabling font kerning.
CFDictionaryAddValue expects a CFNumberRef, not a pointer-to-CFNumberRef. Reviewed-by: TrustMe
Diffstat (limited to 'src')
-rw-r--r--src/gui/text/qfontengine_mac.mm2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/text/qfontengine_mac.mm b/src/gui/text/qfontengine_mac.mm
index 72e5175..b16fd7e 100644
--- a/src/gui/text/qfontengine_mac.mm
+++ b/src/gui/text/qfontengine_mac.mm
@@ -156,7 +156,7 @@ QCoreTextFontEngineMulti::QCoreTextFontEngineMulti(const ATSFontFamilyRef &, con
if (!kerning) {
float zero = 0.0;
QCFType<CFNumberRef> noKern = CFNumberCreate(kCFAllocatorDefault, kCFNumberFloatType, &zero);
- CFDictionaryAddValue(attributeDict, kCTKernAttributeName, &noKern);
+ CFDictionaryAddValue(attributeDict, kCTKernAttributeName, noKern);
}
QCoreTextFontEngine *fe = new QCoreTextFontEngine(ctfont, fontDef, this);