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-15 22:45:21 +0200
commit1089c1baa887a7120d17707d8b54925fa5c2feee (patch)
tree368015b7828d53285c1b05e825f00acf3d886cc0 /svx
parentfc5357935cc160fd19b61db7cbf7f098962d42a3 (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
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 {