Kaydet (Commit) a5f343fa authored tarafından Kohei Yoshida's avatar Kohei Yoshida Kaydeden (comit) Ashod Nakashian

Reduce the indirection count...

... by getting the input handler instance directly from the view
shell that owns it.

Change-Id: I3b6e74285f64457d694db05d591461b291fa34c5
(cherry picked from commit d33a81c2)
üst 13b5d194
......@@ -1107,7 +1107,9 @@ void ScTextWnd::StartEditEngine()
InitEditEngine();
}
SC_MOD()->SetInputMode( SC_INPUT_TOP );
ScInputHandler* pHdl = mpViewShell->GetInputHandler();
if (pHdl)
pHdl->SetMode(SC_INPUT_TOP);
SfxViewFrame* pViewFrm = SfxViewFrame::Current();
if (pViewFrm)
......@@ -1557,8 +1559,10 @@ void ScTextWnd::StopEditEngine( bool bAll )
mpEditView.reset();
mpEditEngine.reset();
if ( pScMod->IsEditMode() && !bAll )
pScMod->SetInputMode(SC_INPUT_TABLE);
ScInputHandler* pHdl = mpViewShell->GetInputHandler();
if (pHdl && pHdl->IsEditMode() && !bAll)
pHdl->SetMode(SC_INPUT_TABLE);
SfxViewFrame* pViewFrm = SfxViewFrame::Current();
if (pViewFrm)
......
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