Kaydet (Commit) 74626079 authored tarafından Armin Le Grand's avatar Armin Le Grand

i123181 Corrected mirroring of shear angle in SdrObjCustomShape::TRSetBaseGeometry, this was wrong

üst c7d96eed
......@@ -3343,8 +3343,10 @@ void SdrObjCustomShape::TRSetBaseGeometry(const basegfx::B2DHomMatrix& rMatrix,
if(!basegfx::fTools::equalZero(fShearX))
{
GeoStat aGeoStat;
// #121932# do *not* forget to invert shearX(!)
aGeoStat.nShearWink = FRound((atan(-fShearX) / F_PI180) * 100.0);
// #123181# The fix for #121932# here was wrong, the trunk version does not correct the
// mirrored shear values, neither at the object level, nor on the API or XML level. Taking
// back the mirroring of the shear angle
aGeoStat.nShearWink = FRound((atan(fShearX) / F_PI180) * 100.0);
aGeoStat.RecalcTan();
Shear(Point(), aGeoStat.nShearWink, aGeoStat.nTan, sal_False);
}
......
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