diff options
author | Katarina Machalkova <kmachalkova@suse.cz> | 2011-07-06 10:17:10 +0200 |
---|---|---|
committer | Katarina Machalkova <kmachalkova@suse.cz> | 2011-07-06 10:17:10 +0200 |
commit | d6cf0811d8763ed7005953432c0e39af29536975 (patch) | |
tree | b86ef398809195d107af5bbe5560d4e9fdecc1f7 /sc | |
parent | 0c95b19629d1d22ae7cbabb4d2805b26f8dd6718 (diff) |
Enable FT and listbox in both applicable cases
... that is: "show" and "show on colored cells" ones
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/ui/optdlg/tpview.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sc/source/ui/optdlg/tpview.cxx b/sc/source/ui/optdlg/tpview.cxx index 5d166e5330c0..016a6658cefd 100644 --- a/sc/source/ui/optdlg/tpview.cxx +++ b/sc/source/ui/optdlg/tpview.cxx @@ -315,7 +315,7 @@ void ScTpContentOptions::InitGridOpt() sal_Bool bGridOnTop = pLocalOptions->GetOption( VOPT_GRID_ONTOP ); sal_uInt16 nSelPos = 0; - if ( bGrid ) + if ( bGrid || bGridOnTop ) { aColorFT.Enable(), aColorLB.Enable(); if ( !bGridOnTop ) @@ -395,8 +395,8 @@ IMPL_LINK( ScTpContentOptions, GridHdl, ListBox*, pLb ) sal_Bool bGrid = ( nSelPos <= 1 ); sal_Bool bGridOnTop = ( nSelPos == 1 ); - aColorFT.Enable(bGridOnTop); - aColorLB.Enable(bGridOnTop); + aColorFT.Enable(bGrid); + aColorLB.Enable(bGrid); pLocalOptions->SetOption( VOPT_GRID, bGrid ); pLocalOptions->SetOption( VOPT_GRID_ONTOP, bGridOnTop ); return 0; |