summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorTomaž Vajngerl <tomaz.vajngerl@collabora.com>2014-05-07 21:04:32 +0200
committerTomaž Vajngerl <tomaz.vajngerl@collabora.com>2014-07-19 20:58:09 +0200
commitcdc102f1153ee61cb53d2da7e4acfe4074da8935 (patch)
tree1f04e17e90082aeb27aa7e732e9cd53ec2c0b8a3 /vcl
parent918fca99c0bb9ddf2102de9a50f074624802e9cb (diff)
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
Diffstat (limited to 'vcl')
-rw-r--r--vcl/source/filter/wmf/winmtf.cxx16
1 files changed, 8 insertions, 8 deletions
diff --git a/vcl/source/filter/wmf/winmtf.cxx b/vcl/source/filter/wmf/winmtf.cxx
index c21d5e89e7c9..f21d54a69ba3 100644
--- a/vcl/source/filter/wmf/winmtf.cxx
+++ b/vcl/source/filter/wmf/winmtf.cxx
@@ -304,14 +304,14 @@ Color WinMtf::ReadColor()
Point WinMtfOutput::ImplScale( const Point& rPt) // Hack to set varying defaults for incompletely defined files.
{
- if (mbIsMapDevSet && mbIsMapWinSet)
- {
- return rPt; //fdo#73764
- }
- else
- {
- return Point((rPt.X())*UNDOCUMENTED_WIN_RCL_RELATION-mrclFrame.Left(),(rPt.Y())*UNDOCUMENTED_WIN_RCL_RELATION-mrclFrame.Top());
- }
+ if (mbIsMapDevSet)
+ return rPt; //fdo#73764
+
+ if (mbIsMapWinSet)
+ return Point(rPt.X() * UNDOCUMENTED_WIN_RCL_RELATION - mrclFrame.Left(),
+ rPt.Y() * UNDOCUMENTED_WIN_RCL_RELATION - mrclFrame.Top());
+
+ return ImplMap(rPt);
}