summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorEike Rathke <erack@redhat.com>2016-08-12 12:16:38 +0200
committerEike Rathke <erack@redhat.com>2016-08-12 12:18:06 +0200
commitbbf671229cd06156e3d4eff5a2c7164ebd28e020 (patch)
tree09108bfb6ca2dafebf53f68101dd9ca2dd074d37 /sc
parentb9592bbea315e04da36a1a26e687490ea93c4cc6 (diff)
check SelectionForbidsCellFill() on EnterBlock()
... to prevent Alt+Enter filling a huge selection. Change-Id: I8ce905c6e5ad0cb4dadf309f7b995142414e7193
Diffstat (limited to 'sc')
-rw-r--r--sc/source/ui/view/viewfun2.cxx6
1 files changed, 6 insertions, 0 deletions
diff --git a/sc/source/ui/view/viewfun2.cxx b/sc/source/ui/view/viewfun2.cxx
index c6e2a9459e78..2251efd4dd32 100644
--- a/sc/source/ui/view/viewfun2.cxx
+++ b/sc/source/ui/view/viewfun2.cxx
@@ -750,6 +750,12 @@ void ScViewFunc::EnterBlock( const OUString& rString, const EditTextObject* pDat
}
}
+ if (GetViewData().SelectionForbidsCellFill())
+ {
+ PaintArea(nCol, nRow, nCol, nRow); // possibly the edit-engine is still painted there
+ return;
+ }
+
ScDocument* pDoc = GetViewData().GetDocument();
OUString aNewStr = rString;
if ( pData )