svx/source/diagram/IDiagramHelper.cxx |    4 ++++
 1 file changed, 4 insertions(+)

New commits:
commit 1089c1baa887a7120d17707d8b54925fa5c2feee
Author:     Xisco Fauli <[email protected]>
AuthorDate: Wed Jun 15 16:37:13 2022 +0200
Commit:     Xisco Fauli <[email protected]>
CommitDate: Wed Jun 15 22:45:21 2022 +0200

    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 <[email protected]>
    Tested-by: Jenkins

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 {

Reply via email to