sw/source/uibase/config/viewopt.cxx |    6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

New commits:
commit a9d225df2f8772e21435523ca20df1ece37390e4
Author:     Jim Raykowski <rayk...@gmail.com>
AuthorDate: Wed Aug 3 21:19:09 2022 -0800
Commit:     Jim Raykowski <rayk...@gmail.com>
CommitDate: Sat Aug 6 03:49:34 2022 +0200

    tdf#148240 follow up: Make Outline-Folding non-experimental
    
    Change-Id: I147591c8088b1fad0575b2efe46f862573147fe9
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/137774
    Reviewed-by: Julien Nabet <serval2...@yahoo.fr>
    Tested-by: Jenkins
    Reviewed-by: Jim Raykowski <rayk...@gmail.com>

diff --git a/sw/source/uibase/config/viewopt.cxx 
b/sw/source/uibase/config/viewopt.cxx
index 66ea4daa05f4..c5e6f3e56b9e 100644
--- a/sw/source/uibase/config/viewopt.cxx
+++ b/sw/source/uibase/config/viewopt.cxx
@@ -98,14 +98,12 @@ bool SwViewOption::IsEqualFlags( const SwViewOption &rOpt ) 
const
 
 bool SwViewOption::IsShowOutlineContentVisibilityButton() const
 {
-    return officecfg::Office::Common::Misc::ExperimentalMode::get() &&
-        (m_nCoreOptions & ViewOptFlags1::ShowOutlineContentVisibilityButton);
+    return static_cast<bool>(m_nCoreOptions & 
ViewOptFlags1::ShowOutlineContentVisibilityButton);
 }
 
 bool SwViewOption::IsTreatSubOutlineLevelsAsContent() const
 {
-    return officecfg::Office::Common::Misc::ExperimentalMode::get() &&
-        (m_nCoreOptions & ViewOptFlags1::TreatSubOutlineLevelsAsContent);
+    return static_cast<bool>(m_nCoreOptions & 
ViewOptFlags1::TreatSubOutlineLevelsAsContent);
 }
 
 void SwViewOption::DrawRect( OutputDevice *pOut,

Reply via email to