summaryrefslogtreecommitdiff
path: root/oox
diff options
context:
space:
mode:
authorSarper Akdemir <sarper.akdemir@collabora.com>2023-04-25 08:48:36 +0300
committerSarper Akdemir <sarper.akdemir@collabora.com>2023-04-26 21:13:31 +0200
commit7dd994f8303a2b9396ed3848104028ff724e3bab (patch)
tree7e1839ba37414cd3fc4dce5975834e4cc8215128 /oox
parentaf8cb1039fd0cce86d771f4765c7d73c9f39b5a7 (diff)
pptx export: fix export of vertical table text
The mapping (implemented in 77655fc3dca05d4bb2366e67ccea228e3886bfe2) used on export and the accompanying roundtrip test was incorrect. This patch fixes both. Rotation value of - 9000 maps to vert270 - 27000 maps to vert Change-Id: I9a9f889a2bff0241e62ee685492034eec6d0cccf Reviewed-on: https://gerrit.libreoffice.org/c/core/+/150955 Tested-by: Jenkins Reviewed-by: Sarper Akdemir <sarper.akdemir@collabora.com>
Diffstat (limited to 'oox')
-rw-r--r--oox/source/drawingml/drawingmltypes.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/oox/source/drawingml/drawingmltypes.cxx b/oox/source/drawingml/drawingmltypes.cxx
index ff8c46050c15..30fed83f4391 100644
--- a/oox/source/drawingml/drawingmltypes.cxx
+++ b/oox/source/drawingml/drawingmltypes.cxx
@@ -382,9 +382,9 @@ std::optional<OString> GetTextVerticalType(sal_Int32 nRotateAngle)
switch (nRotateAngle)
{
case 9000:
- return "vert";
- case 27000:
return "vert270";
+ case 27000:
+ return "vert";
default:
return {};
}