summaryrefslogtreecommitdiff
path: root/starmath
diff options
context:
space:
mode:
authorMichael Meeks <michael.meeks@collabora.com>2015-05-01 16:33:01 +0200
committerMichael Meeks <michael.meeks@collabora.com>2015-05-02 00:50:06 +0200
commit393c51cee8bc3de5a2a9f4e04161c59e8712f631 (patch)
tree8dcee58f3fc4b6ecffbe55c3a5fe749f3f342b46 /starmath
parent526d192333615e8b3b10f144faad987519be1044 (diff)
Audit LoseFocus - forms, reportdesign, sc, starmath, svtools.
Change-Id: If7068e59c88e8c3c3bafc70f64899a26d739e331
Diffstat (limited to 'starmath')
-rw-r--r--starmath/source/view.cxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/starmath/source/view.cxx b/starmath/source/view.cxx
index 829b6af9c2b2..304327be8f3b 100644
--- a/starmath/source/view.cxx
+++ b/starmath/source/view.cxx
@@ -268,8 +268,9 @@ void SmGraphicWindow::LoseFocus()
void SmGraphicWindow::RepaintViewShellDoc()
{
- SmDocShell &rDoc = *pViewShell->GetDoc();
- rDoc.Repaint();
+ SmDocShell *pDoc = pViewShell->GetDoc();
+ if (pDoc)
+ pDoc->Repaint();
}
IMPL_LINK_NOARG(SmGraphicWindow, CaretBlinkTimerHdl)