diff options
Diffstat (limited to 'vcl/source/font')
-rw-r--r-- | vcl/source/font/PhysicalFontFace.cxx | 2 | ||||
-rw-r--r-- | vcl/source/font/fontselect.cxx | 8 |
2 files changed, 5 insertions, 5 deletions
diff --git a/vcl/source/font/PhysicalFontFace.cxx b/vcl/source/font/PhysicalFontFace.cxx index 9610c1268057..876d6dfbb924 100644 --- a/vcl/source/font/PhysicalFontFace.cxx +++ b/vcl/source/font/PhysicalFontFace.cxx @@ -161,7 +161,7 @@ bool PhysicalFontFace::IsBetterMatch( const FontSelectPattern& rFSD, FontMatchSt int nHeightMatch = 0; int nWidthMatch = 0; - if( rFSD.mnOrientation != Degree10(0) ) + if( rFSD.mnOrientation != 0_deg10 ) nMatch += 80; else if( rFSD.mnWidth != 0 ) nMatch += 25; diff --git a/vcl/source/font/fontselect.cxx b/vcl/source/font/fontselect.cxx index 09fb90e8b15f..b592c71670a2 100644 --- a/vcl/source/font/fontselect.cxx +++ b/vcl/source/font/fontselect.cxx @@ -46,12 +46,12 @@ FontSelectPattern::FontSelectPattern( const vcl::Font& rFont, rFont.GetFontAttributes( *this ); // normalize orientation between 0 and 3600 - if( mnOrientation < Degree10(0) || mnOrientation >= Degree10(3600) ) + if( mnOrientation < 0_deg10 || mnOrientation >= 3600_deg10 ) { - if( mnOrientation >= Degree10(0) ) - mnOrientation %= Degree10(3600); + if( mnOrientation >= 0_deg10 ) + mnOrientation %= 3600_deg10; else - mnOrientation = Degree10(3600) - (-mnOrientation % Degree10(3600)); + mnOrientation = 3600_deg10 - (-mnOrientation % 3600_deg10); } // normalize width and height |