sc/source/ui/sidebar/CellLineStyleControl.cxx |    8 ++------
 1 file changed, 2 insertions(+), 6 deletions(-)

New commits:
commit 4622823a800804acf15c0f4a5adecce03ae65189
Author: Maxim Monastirsky <momonas...@gmail.com>
Date:   Thu Aug 13 15:39:54 2015 +0300

    Another GrabFocus during dispose
    
    Change-Id: I89f8aa5e087e95c96d63695be0ec4e9b4fbe0a0c

diff --git a/sc/source/ui/sidebar/CellLineStyleControl.cxx 
b/sc/source/ui/sidebar/CellLineStyleControl.cxx
index 3098858..c250b90 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()
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to