diff options
-rw-r--r-- | sc/source/ui/sidebar/CellLineStyleControl.cxx | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/sc/source/ui/sidebar/CellLineStyleControl.cxx b/sc/source/ui/sidebar/CellLineStyleControl.cxx index 309885809b2f..c250b903d350 100644 --- a/sc/source/ui/sidebar/CellLineStyleControl.cxx +++ b/sc/source/ui/sidebar/CellLineStyleControl.cxx @@ -96,14 +96,10 @@ void CellLineStyleControl::Initialize() void CellLineStyleControl::GetFocus() { - if(!mbVSfocus) - { + if (!mbVSfocus && maPushButtonMoreOptions) maPushButtonMoreOptions->GrabFocus(); - } - else - { + else if (maCellLineStyleValueSet) maCellLineStyleValueSet->GrabFocus(); - } } void CellLineStyleControl::SetAllNoSel() |