summaryrefslogtreecommitdiff
path: root/starmath/source/view.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'starmath/source/view.cxx')
-rw-r--r--starmath/source/view.cxx5
1 files changed, 2 insertions, 3 deletions
diff --git a/starmath/source/view.cxx b/starmath/source/view.cxx
index 1de12e66c507..e60f22df460d 100644
--- a/starmath/source/view.cxx
+++ b/starmath/source/view.cxx
@@ -1374,9 +1374,8 @@ SmEditWindow *SmViewShell::GetEditWindow()
if (pWrapper != NULL)
{
- SmEditWindow *pEditWin = pWrapper->GetEditWindow();
- SAL_WARN_IF( !pEditWin, "starmath", "SmEditWindow missing" );
- return pEditWin;
+ SmEditWindow& rEditWin = pWrapper->GetEditWindow();
+ return &rEditWin;
}
return NULL;