Date: prev next · Thread: first prev next last
2011 Archives by date, by thread · List index


Hi all,

On fdo#41187
https://bugs.freedesktop.org/show_bug.cgi?id=41187
the reporter suggests that "Print grid" should be ignored unless "Display grid"
is checked.
I am wondering if an easy trick that making "Print grid" checked/unchecked
once "Display grid" checked/unchecked, as attached, has the similar effect
enough as making "Print grid" possible only when "Display grid" is checked.
And yes, it does change the current behavior of Writer, so it would be nice
to hear your opinions about this idea.

Cheers,
-- Takeshi Abe
From be57f6b9b3485087c4a69538843aa199032f7e8d Mon Sep 17 00:00:00 2001
From: Takeshi Abe <tabe@fixedpoint.jp>
Date: Thu, 6 Oct 2011 20:15:19 +0900
Subject: [PATCH] fdo#41187

making "Prind grid" possible only when "Display grid" checked
---
 sw/source/ui/misc/pggrid.cxx |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/sw/source/ui/misc/pggrid.cxx b/sw/source/ui/misc/pggrid.cxx
index 7d315d8..1507b94 100644
--- a/sw/source/ui/misc/pggrid.cxx
+++ b/sw/source/ui/misc/pggrid.cxx
@@ -518,7 +518,9 @@ IMPL_LINK(SwTextGridPage, GridTypeHdl, RadioButton*, pButton)
 
 IMPL_LINK(SwTextGridPage, DisplayGridHdl, CheckBox*, EMPTYARG)
 {
-    aPrintCB.Enable(aDisplayCB.IsChecked());
+    sal_Bool bChecked = aDisplayCB.IsChecked();
+    aPrintCB.Enable(bChecked);
+    aPrintCB.Check(bChecked);
     return 0;
 }
 
-- 
1.7.6.3


Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.