summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTomaž Vajngerl <tomaz.vajngerl@collabora.com>2014-05-15 13:52:21 +0200
committerTomaž Vajngerl <tomaz.vajngerl@collabora.com>2014-05-15 19:51:07 +0200
commit7da0a6e562de26222a8c56ae9a5a51611264c59a (patch)
treec75f31853d27ef5a2f0c00211484fc91f28c9712
parent29ef23b3074b0eee2cc769ec1a06280cff5b6f99 (diff)
fdo#78603 mixup (Left->Top) in Rectangle construction
Change-Id: I7fa566e036508d43b153c7983dc89fc6660718e7
-rw-r--r--vcl/source/filter/wmf/winwmf.cxx9
1 files changed, 5 insertions, 4 deletions
diff --git a/vcl/source/filter/wmf/winwmf.cxx b/vcl/source/filter/wmf/winwmf.cxx
index d98e02489fb5..1baafa73e09b 100644
--- a/vcl/source/filter/wmf/winwmf.cxx
+++ b/vcl/source/filter/wmf/winwmf.cxx
@@ -1157,11 +1157,12 @@ bool WMFReader::ReadHeader()
if (aPlaceableBound.GetWidth() > aMaxWidth)
{
double fRatio = aPlaceableBound.GetWidth() / fMaxWidth;
+
aPlaceableBound = Rectangle(
- aPlaceableBound.Top() / fRatio,
- aPlaceableBound.Left() / fRatio,
- aPlaceableBound.Bottom() / fRatio,
- aPlaceableBound.Right() / fRatio);
+ aPlaceableBound.Left() / fRatio,
+ aPlaceableBound.Top() / fRatio,
+ aPlaceableBound.Right() / fRatio,
+ aPlaceableBound.Bottom() / fRatio);
}
}