Kaydet (Commit) 0c39c456 authored tarafından Caolán McNamara's avatar Caolán McNamara

afl-eventesting: deref of null mpTextObj

Change-Id: Icdb7d1cc250640f428984b96b0a51ac950013cb2
üst 7aba9dcf
...@@ -1384,7 +1384,7 @@ void Outliner::SetPage (EditMode eEditMode, sal_uInt16 nPageIndex) ...@@ -1384,7 +1384,7 @@ void Outliner::SetPage (EditMode eEditMode, sal_uInt16 nPageIndex)
void Outliner::EnterEditMode (bool bGrabFocus) void Outliner::EnterEditMode (bool bGrabFocus)
{ {
OutlinerView* pOutlinerView = mpImpl->GetOutlinerView(); OutlinerView* pOutlinerView = mpImpl->GetOutlinerView();
if (pOutlinerView != NULL) if (pOutlinerView && mpTextObj)
{ {
pOutlinerView->SetOutputArea( Rectangle( Point(), Size(1, 1))); pOutlinerView->SetOutputArea( Rectangle( Point(), Size(1, 1)));
SetPaperSize( mpTextObj->GetLogicRect().GetSize() ); SetPaperSize( mpTextObj->GetLogicRect().GetSize() );
......
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