summaryrefslogtreecommitdiff
path: root/oox
diff options
context:
space:
mode:
authorMark Hung <marklh9@gmail.com>2018-07-24 00:54:41 +0800
committerMark Hung <marklh9@gmail.com>2018-07-24 12:10:06 +0200
commit629aeda73b2db4246b837b63fb7bcf267111783c (patch)
treefe799b2502d95d7840ebfede12cdf29c82f8aca3 /oox
parentdcbb65f2a4a3ee70ccd4896d7a5e975dbd9e6509 (diff)
tdf#118890 subtract 100% from by values of animScale.
Despite that by values should be offset values instead of ending values, what we got from pptx seems to be the later, that we have to subtract 100% from the by values to get offset values for slideshow. Change-Id: I7eb9981210ea9998dae0de8f22c155b394e5abeb Reviewed-on: https://gerrit.libreoffice.org/57860 Tested-by: Jenkins Reviewed-by: Mark Hung <marklh9@gmail.com>
Diffstat (limited to 'oox')
-rw-r--r--oox/source/ppt/timenodelistcontext.cxx6
1 files changed, 5 insertions, 1 deletions
diff --git a/oox/source/ppt/timenodelistcontext.cxx b/oox/source/ppt/timenodelistcontext.cxx
index ec720520e54c..2bd2e2a78f72 100644
--- a/oox/source/ppt/timenodelistcontext.cxx
+++ b/oox/source/ppt/timenodelistcontext.cxx
@@ -673,7 +673,11 @@ namespace oox { namespace ppt {
case PPT_TOKEN( by ):
{
// CT_TLPoint
- maBy = convertPointPercent(GetPointPercent(rAttribs.getFastAttributeList()));
+ css::awt::Point aPoint = GetPointPercent(rAttribs.getFastAttributeList());
+ // We got ending values instead of offset values, so substract 100% from them.
+ aPoint.X -= 100000;
+ aPoint.Y -= 100000;
+ maBy = convertPointPercent(aPoint);
return this;
}
default: