summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorEike Rathke <erack@redhat.com>2014-08-22 22:10:45 +0200
committerEike Rathke <erack@redhat.com>2014-08-22 23:45:21 +0200
commite45001fad0f07c547a80bbe117d3523df4d67b63 (patch)
tree8f8523107a1da0c05615e701fef55ec235b07483 /sc
parent4e31977bcdd79fc3ae23c4c470a782af6173f6c0 (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.cxx6
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();