Kaydet (Commit) efbe3f64 authored tarafından Thorsten Behrens's avatar Thorsten Behrens

Remove obsolete quirk for text rotation.

With 800806ba matrix decompose
returns the correct angle right away, no need to catch it here.
üst 9045503c
...@@ -128,15 +128,6 @@ namespace vclcanvas ...@@ -128,15 +128,6 @@ namespace vclcanvas
aMatrix.decompose( aScale, aTranslate, nRotate, nShearX ); aMatrix.decompose( aScale, aTranslate, nRotate, nShearX );
// #i72417# detecting the 180 degree rotation case manually here.
if( aScale.getX() < 0.0 &&
aScale.getY() < 0.0 &&
basegfx::fTools::equalZero(nRotate) )
{
aScale *= -1.0;
nRotate += M_PI;
}
// query font metric _before_ tampering with width and height // query font metric _before_ tampering with width and height
if( !::rtl::math::approxEqual(aScale.getX(), aScale.getY()) ) if( !::rtl::math::approxEqual(aScale.getX(), aScale.getY()) )
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment