summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorMike Kaganski <mike.kaganski@collabora.com>2024-02-28 17:47:04 +0600
committerAndras Timar <andras.timar@collabora.com>2024-03-07 13:54:19 +0100
commit12182a4ea33f67db2547c3829ed2dbb01d0b5c12 (patch)
treec75f629e17b4f7aa8866cc024e68bd2e3f8d907b /sc
parentd20f5a05811fe95f3a4261598ab31eade2f1430a (diff)
tdf#159938: only apply wrap when the content was modified
Change-Id: I2f18739239401085a06bbdce6623a484c13d680b Reviewed-on: https://gerrit.libreoffice.org/c/core/+/164091 Tested-by: Jenkins Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com> (cherry picked from commit f0d8f72eb3447b705d1dcdc35a6f3c66a880ab7e) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/164111 Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Diffstat (limited to 'sc')
-rw-r--r--sc/source/ui/app/inputhdl.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sc/source/ui/app/inputhdl.cxx b/sc/source/ui/app/inputhdl.cxx
index a580ec911550..f76842429912 100644
--- a/sc/source/ui/app/inputhdl.cxx
+++ b/sc/source/ui/app/inputhdl.cxx
@@ -3160,7 +3160,7 @@ void ScInputHandler::EnterHandler( ScEnterMode nBlockMode, bool bBeforeSavingInL
lcl_RemoveTabs(aString);
lcl_RemoveTabs(aPreAutoCorrectString);
- if (aString.indexOf('\n') != -1)
+ if (bModified && aString.indexOf('\n') != -1)
{
// Cell contains line breaks, enable wrapping
ScLineBreakCell aBreakItem(true);