Browse Source

iOS: Fix no-matching-function error

pull/22/head
reuk 3 years ago
parent
commit
5186ac71e2
No known key found for this signature in database GPG Key ID: 9ADCD339CFC98A11
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      modules/juce_graphics/native/juce_mac_Fonts.mm

+ 2
- 1
modules/juce_graphics/native/juce_mac_Fonts.mm View File

@@ -274,7 +274,8 @@ namespace CoreTextTypeLayout
if (attribStringLen <= wordBegin)
continue;
const auto wordEnd = jmin (attribStringLen, (currentPosition + attr.range.getLength()).getAddress() - beginPtr.getAddress());
const auto wordEndAddress = (currentPosition + attr.range.getLength()).getAddress();
const auto wordEnd = jmin (attribStringLen, (CFIndex) (wordEndAddress - beginPtr.getAddress()));
const auto range = CFRangeMake (wordBegin, wordEnd - wordBegin);
if (auto ctFontRef = getOrCreateFont (attr.font))


Loading…
Cancel
Save