diff options
author | Mike Kaganski <mike.kaganski@collabora.com> | 2024-02-28 17:47:04 +0600 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.com> | 2024-03-08 08:38:29 +0100 |
commit | a0ac242e3c93cbf57c3cb22f97140133a624b3f0 (patch) | |
tree | f9d7f3b1b0fbdc918ef88d032d77e0e2cc224e44 | |
parent | 0dbe46115cce2f77aff43f61134bcbdf3d1e710b (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/+/164110
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
-rw-r--r-- | sc/source/ui/app/inputhdl.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sc/source/ui/app/inputhdl.cxx b/sc/source/ui/app/inputhdl.cxx index 48b0fa6b6296..ba13af9a70ea 100644 --- a/sc/source/ui/app/inputhdl.cxx +++ b/sc/source/ui/app/inputhdl.cxx @@ -3164,7 +3164,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); |