[Libreoffice-commits] core.git: sc/source
Eike Rathke
erack at redhat.com
Fri Aug 12 10:18:49 UTC 2016
sc/source/ui/view/viewfun2.cxx | 6 ++++++
1 file changed, 6 insertions(+)
New commits:
commit bbf671229cd06156e3d4eff5a2c7164ebd28e020
Author: Eike Rathke <erack at redhat.com>
Date: Fri Aug 12 12:16:38 2016 +0200
check SelectionForbidsCellFill() on EnterBlock()
... to prevent Alt+Enter filling a huge selection.
Change-Id: I8ce905c6e5ad0cb4dadf309f7b995142414e7193
diff --git a/sc/source/ui/view/viewfun2.cxx b/sc/source/ui/view/viewfun2.cxx
index c6e2a94..2251efd 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 )
More information about the Libreoffice-commits
mailing list