Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
core
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
LibreOffice
core
Commits
8951ef03
Kaydet (Commit)
8951ef03
authored
Eyl 04, 2012
tarafından
Tor Lillqvist
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Workaround for crash on iOS
Change-Id: I947f7def862d2a238dc609a91d898f03dbd72b84
üst
3cac4804
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
0 deletions
+13
-0
salcoretextlayout.cxx
vcl/ios/source/gdi/salcoretextlayout.cxx
+13
-0
No files found.
vcl/ios/source/gdi/salcoretextlayout.cxx
Dosyayı görüntüle @
8951ef03
...
...
@@ -421,6 +421,19 @@ bool CoreTextLayout::LayoutText(ImplLayoutArgs& args)
{
return
false
;
}
// If the string contains U+FFFD ("REPLACEMENT CHARACTER"), which
// happens at least for the ooo80484-1.slk document in
// sc_filters_test, the CTTypesetterCreateWithAttributedString()
// call below crashes, at least in the iOS simulator. Go figure.
// (In that case the string consists of *only* such characters,
// but play it safe.
for
(
int
i
=
0
;
i
<
m_chars_count
;
i
++
)
{
if
(
args
.
mpStr
[
args
.
mnMinCharPos
+
i
]
==
0xFFFD
)
return
false
;
}
/* c0 and c1 are construction objects */
CFStringRef
c0
=
CFStringCreateWithCharactersNoCopy
(
NULL
,
&
(
args
.
mpStr
[
args
.
mnMinCharPos
]),
m_chars_count
,
kCFAllocatorNull
);
if
(
!
c0
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment