Kaydet (Commit) 836eb0ee authored tarafından Marco Cecchetti's avatar Marco Cecchetti Kaydeden (comit) Szymon Kłos

lok: sc: clicking on individual chart elements doesn't select object

Exporting to svg a selected object of a chart does not work.
In the chart case the selected object for the current document is
always the chart itself, not an internal chart object.
Moreover the exporting action cause the exported object to be selected
again. So you try to selected the chart legend and you end up with the
whole chart selected again.

Change-Id: Ib4aa91afd592909ad354ca373dc03298547f9fb5
Reviewed-on: https://gerrit.libreoffice.org/68347
Tested-by: Jenkins
Reviewed-by: 's avatarSzymon Kłos <szymon.klos@collabora.com>
üst e3b6c3ec
......@@ -94,6 +94,7 @@
#include <sfx2/viewfrm.hxx>
#include <sfx2/msgpool.hxx>
#include <sfx2/dispatch.hxx>
#include <sfx2/lokcharthelper.hxx>
#include <sfx2/DocumentSigner.hxx>
#include <svx/dialmgr.hxx>
#include <svx/dialogs.hrc>
......@@ -2752,6 +2753,11 @@ static size_t doc_renderShapeSelection(LibreOfficeKitDocument* pThis, char** pOu
if (gImpl)
gImpl->maLastExceptionMsg.clear();
LokChartHelper aChartHelper(SfxViewShell::Current());
if (aChartHelper.GetWindow())
return 0;
try
{
LibLODocument_Impl* pDocument = static_cast<LibLODocument_Impl*>(pThis);
......
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