Kaydet (Commit) e45001fa authored tarafından Eike Rathke's avatar Eike Rathke

InsertCurrentTime: don't fiddle with the cell while editing

Change-Id: Ia12b10a44b7d90344a009753ddae801b7d58dddf
üst 4e31977b
......@@ -43,6 +43,7 @@
#include "markdata.hxx"
#include "drawview.hxx"
#include "globalnames.hxx"
#include "inputhdl.hxx"
#include <vector>
......@@ -252,6 +253,11 @@ void ScViewFunc::DetectiveMarkSucc()
void ScViewFunc::InsertCurrentTime(short nReqFmt, const OUString& rUndoStr)
{
ScViewData& rViewData = GetViewData();
ScInputHandler* pInputHdl = SC_MOD()->GetInputHdl( rViewData.GetViewShell());
if (pInputHdl && pInputHdl->IsInputMode())
return; // don't fiddle with the cell while editing
ScAddress aCurPos = rViewData.GetCurPos();
ScDocShell* pDocSh = rViewData.GetDocShell();
ScDocument& rDoc = pDocSh->GetDocument();
......
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