diff options
author | Takeshi Abe <tabe@fixedpoint.jp> | 2017-01-04 18:20:11 +0900 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2017-01-04 14:00:48 +0000 |
commit | 49f10e92dc1a9bd563f4a8620f6e6019e5d6a683 (patch) | |
tree | 72e4687fdfb77cb8b4fadd534254bbb5ac36cf0e | |
parent | 01f620676d6cd35b5d9c89bae7438303d1238849 (diff) |
starmath: SmGraphicWindow requires non-null pViewShell
Change-Id: Ic1e0f3f7aefb801cdda4709c3d43794ad9a21b02
Reviewed-on: https://gerrit.libreoffice.org/32722
Reviewed-by: Michael Stahl <mstahl@redhat.com>
Tested-by: Michael Stahl <mstahl@redhat.com>
-rw-r--r-- | starmath/source/view.cxx | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/starmath/source/view.cxx b/starmath/source/view.cxx index e04640009092..0311b1b09ad3 100644 --- a/starmath/source/view.cxx +++ b/starmath/source/view.cxx @@ -99,6 +99,7 @@ SmGraphicWindow::SmGraphicWindow(SmViewShell* pShell) , pViewShell(pShell) , nZoom(100) { + assert(pViewShell); // docking windows are usually hidden (often already done in the // resource) and will be shown by the sfx framework. Hide(); @@ -370,8 +371,6 @@ const SmNode * SmGraphicWindow::SetCursorPos(sal_uInt16 nRow, sal_uInt16 nCol) void SmGraphicWindow::Paint(vcl::RenderContext& rRenderContext, const Rectangle&) { - SAL_WARN_IF(!pViewShell, "starmath", "view shell missing"); - ApplyColorConfigValues(SM_MOD()->GetColorConfig()); SmDocShell& rDoc = *pViewShell->GetDoc(); @@ -547,7 +546,6 @@ void SmGraphicWindow::Command(const CommandEvent& rCEvt) Point aPos(5, 5); if (rCEvt.IsMouseEvent()) aPos = rCEvt.GetMousePosPixel(); - SAL_WARN_IF( !pViewShell, "starmath", "view shell missing" ); // added for replaceability of context menus SfxDispatcher::ExecutePopup( this, &aPos ); |