Kaydet (Commit) 49f10e92 authored tarafından Takeshi Abe's avatar Takeshi Abe Kaydeden (comit) Michael Stahl

starmath: SmGraphicWindow requires non-null pViewShell

Change-Id: Ic1e0f3f7aefb801cdda4709c3d43794ad9a21b02
Reviewed-on: https://gerrit.libreoffice.org/32722Reviewed-by: 's avatarMichael Stahl <mstahl@redhat.com>
Tested-by: 's avatarMichael Stahl <mstahl@redhat.com>
üst 01f62067
......@@ -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 );
......
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