Kaydet (Commit) 1e7f551b authored tarafından Eike Rathke's avatar Eike Rathke

second attempt to blind fix MSVC werror C4701,C4703

Change-Id: Ic9d8ee4a88e9bfb6586417c66fb197becd5cfa46
üst e2d31d96
...@@ -304,11 +304,10 @@ void ScTabView::TabChanged( bool bSameTabButMoved ) ...@@ -304,11 +304,10 @@ void ScTabView::TabChanged( bool bSameTabButMoved )
if (comphelper::LibreOfficeKit::isActive()) if (comphelper::LibreOfficeKit::isActive())
{ {
ScDocShell* pDocSh; ScDocShell* pDocSh = GetViewData().GetDocShell();
ScModelObj* pModelObj; ScModelObj* pModelObj = pDocSh ? ScModelObj::getImplementation( pDocSh->GetModel()) : nullptr;
if ( ( pDocSh = GetViewData().GetDocShell() ) != nullptr && if (pModelObj)
( pModelObj = ScModelObj::getImplementation( pDocSh->GetModel() )) != nullptr )
{ {
Size aDocSize = pModelObj->getDocumentSize(); Size aDocSize = pModelObj->getDocumentSize();
std::stringstream ss; std::stringstream ss;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment