Kaydet (Commit) 618d33c2 authored tarafından Tomaž Vajngerl's avatar Tomaž Vajngerl

fdo#70498 work-around scaling in SetClipPath

Scaling needed to be worked-around again so that the image in the
bug report could be drawn correctly. The issue needs some more
investigation how to detect what are the exact conditions that
scaling is needed.

Change-Id: Icd3f57a8ded92c49848feea92dc5a14362718874
üst 98c55e4c
...@@ -296,14 +296,14 @@ Color WinMtf::ReadColor() ...@@ -296,14 +296,14 @@ Color WinMtf::ReadColor()
Point WinMtfOutput::ImplScale( const Point& rPt) // Hack to set varying defaults for incompletely defined files. Point WinMtfOutput::ImplScale( const Point& rPt) // Hack to set varying defaults for incompletely defined files.
{ {
if (mbIsMapDevSet && mbIsMapWinSet) if (mbIsMapDevSet)
{
return rPt; //fdo#73764 return rPt; //fdo#73764
}
else if (mbIsMapWinSet)
{ return Point(rPt.X() * UNDOCUMENTED_WIN_RCL_RELATION - mrclFrame.Left(),
return Point((rPt.X())*UNDOCUMENTED_WIN_RCL_RELATION-mrclFrame.Left(),(rPt.Y())*UNDOCUMENTED_WIN_RCL_RELATION-mrclFrame.Top()); rPt.Y() * UNDOCUMENTED_WIN_RCL_RELATION - mrclFrame.Top());
}
return ImplMap(rPt);
} }
Point WinMtfOutput::ImplMap( const Point& rPt ) Point WinMtfOutput::ImplMap( const Point& rPt )
......
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