summaryrefslogtreecommitdiff
path: root/vcl/unx/generic/glyphs/freetype_glyphcache.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'vcl/unx/generic/glyphs/freetype_glyphcache.cxx')
-rw-r--r--vcl/unx/generic/glyphs/freetype_glyphcache.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/vcl/unx/generic/glyphs/freetype_glyphcache.cxx b/vcl/unx/generic/glyphs/freetype_glyphcache.cxx
index cbc8f7e1b4d5..cbca9eea1bac 100644
--- a/vcl/unx/generic/glyphs/freetype_glyphcache.cxx
+++ b/vcl/unx/generic/glyphs/freetype_glyphcache.cxx
@@ -418,9 +418,9 @@ FreetypeFont::FreetypeFont(FreetypeFontInstance& rFontInstance, const std::share
const FontSelectPattern& rFSD = rFontInstance.GetFontSelectPattern();
- if( rFSD.mnOrientation != 0 )
+ if( rFSD.mnOrientation )
{
- const double dRad = rFSD.mnOrientation * ( F_2PI / 3600.0 );
+ const double dRad = rFSD.mnOrientation.get() * ( F_2PI / 3600.0 );
mnCos = static_cast<tools::Long>( 0x10000 * cos( dRad ) + 0.5 );
mnSin = static_cast<tools::Long>( 0x10000 * sin( dRad ) + 0.5 );
}