summaryrefslogtreecommitdiff
path: root/svx
diff options
context:
space:
mode:
authorXisco Fauli <xiscofauli@libreoffice.org>2022-06-15 16:37:13 +0200
committerXisco Fauli <xiscofauli@libreoffice.org>2022-06-16 09:53:42 +0200
commitca20a4356e53a59dee49c4f146d24b79b9a561eb (patch)
treed41b1c95e884d6cc4b704f7232e8ddf4b233b98d /svx
parent2603a7d51d5c6a283831ba8b92af561eb5931692 (diff)
Advanced Diagram support: make UI visualization experimental only
In 391cb44d415e2126f668ecf62387d5e98ffa6f5c "Advanced Diagram support: UI visualization & simple interactions" added a UI visualization to advanced diagrams. However, the feature is incomplete at the moment, specially towards LibreOffice 7.4, thus, make it experimental for now. This can be reverted later on Change-Id: Ibf21d11899460ab9ef1ddf91cffb851171119618 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/135912 Reviewed-by: Thorsten Behrens <thorsten.behrens@allotropia.de> Tested-by: Jenkins (cherry picked from commit 03099f9860443432dd7ad88b103397d2f45d7ae4) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/135942 Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Diffstat (limited to 'svx')
-rw-r--r--svx/source/diagram/IDiagramHelper.cxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/svx/source/diagram/IDiagramHelper.cxx b/svx/source/diagram/IDiagramHelper.cxx
index b701a5930917..1803a3d2beed 100644
--- a/svx/source/diagram/IDiagramHelper.cxx
+++ b/svx/source/diagram/IDiagramHelper.cxx
@@ -34,6 +34,7 @@
#include <drawinglayer/primitive2d/PolyPolygonColorPrimitive2D.hxx>
#include <comphelper/dispatchcommand.hxx>
#include <drawinglayer/primitive2d/textlayoutdevice.hxx>
+#include <officecfg/Office/Common.hxx>
#include <svx/strings.hrc>
#include <svx/dialmgr.hxx>
@@ -322,6 +323,9 @@ drawinglayer::primitive2d::Primitive2DContainer OverlayDiagramFrame::createOverl
{
drawinglayer::primitive2d::Primitive2DContainer aReturnContainer;
+ if ( !officecfg::Office::Common::Misc::ExperimentalMode::get() )
+ return aReturnContainer;
+
if (getOverlayManager())
{
aReturnContainer = drawinglayer::primitive2d::Primitive2DContainer {