[PATCH] fdo#41187

Takeshi Abe tabe at fixedpoint.jp
Thu Oct 6 04:15:19 PDT 2011


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


----Next_Part(Thu_Oct__6_20_25_32_2011_870)----


More information about the LibreOffice mailing list