From 60bbbd5593b81d9211375ac3841e2b2e20b6c93d Mon Sep 17 00:00:00 2001 From: Ilmari Lauhakangas Date: Sun, 15 Sep 2024 14:13:30 +0300 Subject: [PATCH] Writer View options: Right-aligned should be disabled, MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit if Vertical ruler is unchecked. Regression since commit 745c7bce5fe8b218f7d300667a5409bc7ef58c34 Author: Mihály Palenik Date: Thu Aug 6 15:16:41 2015 +0200 Delete unnecessary writer options from Options dialog Change-Id: I17096e87f83dfd831599d316495c58ac08927895 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/173407 Tested-by: Jenkins Tested-by: Ilmari Lauhakangas Reviewed-by: Ilmari Lauhakangas --- sw/source/ui/config/optpage.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sw/source/ui/config/optpage.cxx b/sw/source/ui/config/optpage.cxx index 52f2d30c67a0..0d3a434ca861 100644 --- a/sw/source/ui/config/optpage.cxx +++ b/sw/source/ui/config/optpage.cxx @@ -247,7 +247,7 @@ void SwContentOptPage::Reset(const SfxItemSet* rSet) bReadOnly = officecfg::Office::Writer::Layout::Window::IsVerticalRulerRight::isReadOnly(); m_xVRulerRightCBox->set_active(pElemAttr->m_bVertRulerRight); - m_xVRulerRightCBox->set_sensitive(!bReadOnly); + m_xVRulerRightCBox->set_sensitive(pElemAttr->m_bVertRuler && !bReadOnly); m_xVRulerRightImg->set_visible(bReadOnly); bReadOnly = !bWebOptionsPage ? officecfg::Office::Writer::Layout::Window::SmoothScroll::isReadOnly() :