diff options
Diffstat (limited to 'sc/source/ui/view/viewdata.cxx')
-rw-r--r-- | sc/source/ui/view/viewdata.cxx | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/sc/source/ui/view/viewdata.cxx b/sc/source/ui/view/viewdata.cxx index 73c79a6ea5dc..b7de81a244a4 100644 --- a/sc/source/ui/view/viewdata.cxx +++ b/sc/source/ui/view/viewdata.cxx @@ -2486,7 +2486,8 @@ void ScViewData::ReadExtOptions( const ScExtDocOptions& rDocOpt ) /* Width of the tabbar, relative to frame window width. We do not have the correct width of the frame window here -> store in ScTabView, which sets the size in the next resize. */ - pView->SetPendingRelTabBarWidth( rDocSett.mfTabBarWidth ); + if ( pView ) + pView->SetPendingRelTabBarWidth( rDocSett.mfTabBarWidth ); // sheet settings for( SCTAB nTab = 0; nTab < static_cast<SCTAB>(maTabData.size()); ++nTab ) @@ -2786,12 +2787,12 @@ void ScViewData::ReadUserDataSequence(const uno::Sequence <beans::PropertyValue> nTabNo = nTab; } } - else if (sName.compareToAscii(SC_HORIZONTALSCROLLBARWIDTH) == 0) + else if (pView && sName.compareToAscii(SC_HORIZONTALSCROLLBARWIDTH) == 0) { if (rSettings[i].Value >>= nTemp32) pView->SetTabBarWidth(nTemp32); } - else if (sName.compareToAscii(SC_RELHORIZONTALTABBARWIDTH) == 0) + else if (pView && sName.compareToAscii(SC_RELHORIZONTALTABBARWIDTH) == 0 ) { double fWidth = 0.0; if (rSettings[i].Value >>= fWidth) |