summaryrefslogtreecommitdiff
path: root/drawinglayer
diff options
context:
space:
mode:
authorXisco Fauli <xiscofauli@libreoffice.org>2023-07-13 23:06:02 +0200
committerخالد حسني <khaled@libreoffice.org>2023-07-26 14:41:29 +0200
commit5d67424b4137fdb6e69c64d2f89327fe4de7561b (patch)
treee2d9ecf1e06bcc0de53b9d8c57fe458d4cef916b /drawinglayer
parent30bb38b041a44f6c30fcf0475b3cf2432dc7f5cb (diff)
tdf#156271: add dx shift on top of x position
Change-Id: I61263a7fec2ec8236221a10f8cb730899c878f5f Reviewed-on: https://gerrit.libreoffice.org/c/core/+/154424 Tested-by: Jenkins Reviewed-by: خالد حسني <khaled@libreoffice.org>
Diffstat (limited to 'drawinglayer')
-rw-r--r--drawinglayer/source/tools/primitive2dxmldump.cxx9
1 files changed, 9 insertions, 0 deletions
diff --git a/drawinglayer/source/tools/primitive2dxmldump.cxx b/drawinglayer/source/tools/primitive2dxmldump.cxx
index 8adaf82327d3..a68692649f46 100644
--- a/drawinglayer/source/tools/primitive2dxmldump.cxx
+++ b/drawinglayer/source/tools/primitive2dxmldump.cxx
@@ -919,6 +919,15 @@ void Primitive2dXmlDump::decomposeAndWrite(
const drawinglayer::attribute::FontAttribute& aFontAttribute
= rTextSimplePortionPrimitive2D.getFontAttribute();
rWriter.attribute("familyname", aFontAttribute.getFamilyName());
+ const std::vector<double> aDx = rTextSimplePortionPrimitive2D.getDXArray();
+ if (aDx.size())
+ {
+ for (size_t iDx = 0; iDx < aDx.size(); ++iDx)
+ {
+ OString sName = "dx" + OString::number(iDx);
+ rWriter.attribute(sName, OUString::number(aDx[iDx]));
+ }
+ }
rWriter.endElement();
}
break;