summaryrefslogtreecommitdiff
path: root/vcl/generic/glyphs/gcach_ftyp.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2015-03-02 10:43:28 +0200
committerNoel Grandin <noel@peralex.com>2015-03-19 10:45:00 +0200
commit062e40c76bcab664907737feace74f134a25c29c (patch)
tree83d8e99e62f8183bad31934cceed1c1626285b12 /vcl/generic/glyphs/gcach_ftyp.cxx
parent4e6410ba0155d4c2ac539fd37f75aa72d489e206 (diff)
loplugin:constantfunction: vcl
Change-Id: I985b781a8d53190505fcb1182749cdaf5cd0f8d0
Diffstat (limited to 'vcl/generic/glyphs/gcach_ftyp.cxx')
-rw-r--r--vcl/generic/glyphs/gcach_ftyp.cxx8
1 files changed, 1 insertions, 7 deletions
diff --git a/vcl/generic/glyphs/gcach_ftyp.cxx b/vcl/generic/glyphs/gcach_ftyp.cxx
index b9c4d9429671..c79c883a4890 100644
--- a/vcl/generic/glyphs/gcach_ftyp.cxx
+++ b/vcl/generic/glyphs/gcach_ftyp.cxx
@@ -894,13 +894,7 @@ sal_GlyphId ServerFont::FixupGlyphIndex( sal_GlyphId aGlyphId, sal_UCS4 aChar )
GlyphSubstitution::const_iterator it = maGlyphSubstitution.find( aGlyphId );
if( it == maGlyphSubstitution.end() )
{
- sal_GlyphId nTemp = GetVerticalChar( aChar );
- if( nTemp ) // is substitution possible
- nTemp = GetRawGlyphIndex( nTemp );
- if( nTemp ) // substitute manually if sensible
- aGlyphId = nTemp | (GF_GSUB | GF_ROTL);
- else
- nGlyphFlags |= GetVerticalFlags( aChar );
+ nGlyphFlags |= GetVerticalFlags( aChar );
}
else
{