summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorTor Lillqvist <tml@iki.fi>2013-03-26 17:13:58 +0200
committerTor Lillqvist <tml@iki.fi>2013-03-26 19:06:08 +0200
commit91a3723922b5fecf0b18346d7d31a9ee685a0b43 (patch)
treedc9deff1a3c7b071c51e6f66b8197f11f40eb003 /vcl
parent708270b616b486869e896d2ace4bc9b4fdbefad3 (diff)
Remove unnecessary code that was based on a wrong guess
Change-Id: Ia3e12d68c0eef56ba32b2c6062448874a52a8df3
Diffstat (limited to 'vcl')
-rw-r--r--vcl/coretext/salcoretextlayout.cxx17
1 files changed, 0 insertions, 17 deletions
diff --git a/vcl/coretext/salcoretextlayout.cxx b/vcl/coretext/salcoretextlayout.cxx
index d4356308412c..7cadbe70e6a8 100644
--- a/vcl/coretext/salcoretextlayout.cxx
+++ b/vcl/coretext/salcoretextlayout.cxx
@@ -621,23 +621,6 @@ bool CoreTextLayout::LayoutText( ImplLayoutArgs& rArgs)
return false;
}
-#ifdef IOS
- // This might be a red herring and unnecessary once the CoreText
- // code actually works;)
-
- // 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 < mnCharCount; i++)
- {
- if ( rArgs.mpStr[rArgs.mnMinCharPos+i] == 0xFFFD)
- return false;
- }
-#endif
-
SAL_INFO( "vcl.coretext.layout", "LayoutText() returning, mnGlyphCount=" << mnGlyphCount );
return true;