diff options
author | Eike Rathke <erack@redhat.com> | 2014-08-22 22:10:45 +0200 |
---|---|---|
committer | Eike Rathke <erack@redhat.com> | 2014-08-22 23:45:21 +0200 |
commit | e45001fad0f07c547a80bbe117d3523df4d67b63 (patch) | |
tree | 8f8523107a1da0c05615e701fef55ec235b07483 /sc | |
parent | 4e31977bcdd79fc3ae23c4c470a782af6173f6c0 (diff) |
InsertCurrentTime: don't fiddle with the cell while editing
Change-Id: Ia12b10a44b7d90344a009753ddae801b7d58dddf
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/ui/view/viewfun6.cxx | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/sc/source/ui/view/viewfun6.cxx b/sc/source/ui/view/viewfun6.cxx index 38745481e786..c688a546a3d4 100644 --- a/sc/source/ui/view/viewfun6.cxx +++ b/sc/source/ui/view/viewfun6.cxx @@ -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(); |