You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@openoffice.apache.org by or...@apache.org on 2014/06/05 14:23:03 UTC
svn commit: r1600630 -
/openoffice/trunk/main/sfx2/source/sidebar/SidebarDockingWindow.cxx
Author: orw
Date: Thu Jun 5 12:23:02 2014
New Revision: 1600630
URL: http://svn.apache.org/r1600630
Log:
124892: <SidebarDockingWindow::GetFocus()> - check, if sidebar controller is available before accessing it.
Modified:
openoffice/trunk/main/sfx2/source/sidebar/SidebarDockingWindow.cxx
Modified: openoffice/trunk/main/sfx2/source/sidebar/SidebarDockingWindow.cxx
URL: http://svn.apache.org/viewvc/openoffice/trunk/main/sfx2/source/sidebar/SidebarDockingWindow.cxx?rev=1600630&r1=1600629&r2=1600630&view=diff
==============================================================================
--- openoffice/trunk/main/sfx2/source/sidebar/SidebarDockingWindow.cxx (original)
+++ openoffice/trunk/main/sfx2/source/sidebar/SidebarDockingWindow.cxx Thu Jun 5 12:23:02 2014
@@ -84,7 +84,10 @@ void SidebarDockingWindow::DoDispose (vo
void SidebarDockingWindow::GetFocus()
{
- mpSidebarController->GetFocusManager().GrabFocus();
+ if (mpSidebarController.is())
+ {
+ mpSidebarController->GetFocusManager().GrabFocus();
+ }
}