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 <t...@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
_______________________________________________ LibreOffice mailing list LibreOffice@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice