]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix typo in previous macfont.m change
authorPaul Eggert <eggert@cs.ucla.edu>
Fri, 15 Jun 2018 20:40:12 +0000 (13:40 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Fri, 15 Jun 2018 20:40:46 +0000 (13:40 -0700)
* src/macfont.m (macfont_descriptor_entity): Fix typo.
Problem reported by Clemens Schüller.

src/macfont.m

index 3a1e9e5f477080624050c66539a0684a54e2c307..e0c704fac95549e8e6228f4962ad16ca90b1d854 100644 (file)
@@ -908,7 +908,8 @@ macfont_descriptor_entity (CTFontDescriptorRef desc, Lisp_Object extra,
   ASET (entity, FONT_EXTRA_INDEX, Fcopy_sequence (extra));
   name = CTFontDescriptorCopyAttribute (desc, kCTFontNameAttribute);
   font_put_extra (entity, QCfont_entity,
-                 Fcons (make_mint_ptr ((void *) name), make_number (traits)));
+                 Fcons (make_mint_ptr ((void *) name),
+                        make_number (sym_traits)));
   if (synth_sym_traits & kCTFontTraitItalic)
     FONT_SET_STYLE (entity, FONT_SLANT_INDEX,
                     make_number (FONT_SLANT_SYNTHETIC_ITALIC));