diff options
author | Henry Castro <hcastro@collabora.com> | 2020-02-04 15:05:09 -0400 |
---|---|---|
committer | Andras Timar <andras.timar@collabora.com> | 2020-02-12 14:59:04 +0100 |
commit | 0373e37748259c80f22aa40757ee33ad71e64968 (patch) | |
tree | 8bfb4a2036e9e7d0f5e3e2d287c184a606f1d007 | |
parent | 16fb30a16d1a8470605487097c854671dee62830 (diff) |
lok: add "type" information when a graphic is selected
Change-Id: I67a36d3aabbc197d9ac8f6ca4509dafd6f2620f0
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/87991
Tested-by: Andras Timar <andras.timar@collabora.com>
Reviewed-by: Andras Timar <andras.timar@collabora.com>
-rw-r--r-- | svx/source/svdraw/svdmrkv.cxx | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/svx/source/svdraw/svdmrkv.cxx b/svx/source/svdraw/svdmrkv.cxx index acba9103244a..edb1ee867792 100644 --- a/svx/source/svdraw/svdmrkv.cxx +++ b/svx/source/svdraw/svdmrkv.cxx @@ -844,9 +844,10 @@ void SdrMarkView::SetMarkHandles(SfxViewShell* pOtherShell) OStringBuffer aExtraInfo; - aExtraInfo.append("{ \"id\": \""); + aExtraInfo.append("{\"id\":\""); aExtraInfo.append(OString::number(reinterpret_cast<sal_IntPtr>(pO))); - aExtraInfo.append("\""); + aExtraInfo.append("\",\"type\":"); + aExtraInfo.append(OString::number(pO->GetObjIdentifier())); if (bWriterGraphic) { @@ -978,7 +979,7 @@ void SdrMarkView::SetMarkHandles(SfxViewShell* pOtherShell) } } } - aExtraInfo.append(" }"); + aExtraInfo.append("}"); sSelectionText = aSelection.toString() + ", " + OString::number(nRotAngle); |