Kaydet (Commit) 7da0a6e5 authored tarafından Tomaž Vajngerl's avatar Tomaž Vajngerl

fdo#78603 mixup (Left->Top) in Rectangle construction

Change-Id: I7fa566e036508d43b153c7983dc89fc6660718e7
üst 29ef23b3
...@@ -1157,11 +1157,12 @@ bool WMFReader::ReadHeader() ...@@ -1157,11 +1157,12 @@ bool WMFReader::ReadHeader()
if (aPlaceableBound.GetWidth() > aMaxWidth) if (aPlaceableBound.GetWidth() > aMaxWidth)
{ {
double fRatio = aPlaceableBound.GetWidth() / fMaxWidth; double fRatio = aPlaceableBound.GetWidth() / fMaxWidth;
aPlaceableBound = Rectangle( aPlaceableBound = Rectangle(
aPlaceableBound.Top() / fRatio, aPlaceableBound.Left() / fRatio,
aPlaceableBound.Left() / fRatio, aPlaceableBound.Top() / fRatio,
aPlaceableBound.Bottom() / fRatio, aPlaceableBound.Right() / fRatio,
aPlaceableBound.Right() / fRatio); aPlaceableBound.Bottom() / fRatio);
} }
} }
......
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