sc/source/ui/app/inputhdl.cxx | 12 ------------ 1 file changed, 12 deletions(-)
New commits: commit 55a8fce5d76bba0657ed76c85439fac8d1d00c8d Author: Justin Luth <jl...@mail.com> AuthorDate: Wed Oct 2 12:15:31 2024 -0400 Commit: Justin Luth <jl...@mail.com> CommitDate: Thu Oct 3 13:32:53 2024 +0200 tdf#159690 tdf#159938 Revert "tdf#158252 sc: Enable text wrapping... ... when inputting line breaks in cell" This reverts 24.2 commit 17e362e56f9e15d0214c441e632c91d22e58519d because it was made as a regression fix for a commit that I just reverted, AS WELL AS having several (duplicate) regression bugs of its own. Duplicate Bug 163150 is a good example of why a linefeed shouldn't automatically imply wrap text - it specified "fit to cell size". Duplicate Bug 159834 complains about this happening on drag/drop. Change-Id: Iad5fb87f9ab71230221c402a84ca682dba0ed004 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/174402 Tested-by: Jenkins Reviewed-by: Justin Luth <jl...@mail.com> diff --git a/sc/source/ui/app/inputhdl.cxx b/sc/source/ui/app/inputhdl.cxx index 233a8656f07c..e2401b7f915d 100644 --- a/sc/source/ui/app/inputhdl.cxx +++ b/sc/source/ui/app/inputhdl.cxx @@ -47,7 +47,6 @@ #include <sfx2/printer.hxx> #include <svl/numformat.hxx> #include <svl/zforlist.hxx> -#include <svx/svxids.hrc> #include <unotools/localedatawrapper.hxx> #include <unotools/charclass.hxx> #include <utility> @@ -3167,17 +3166,6 @@ void ScInputHandler::EnterHandler( ScEnterMode nBlockMode, bool bBeforeSavingInL lcl_RemoveTabs(aString); lcl_RemoveTabs(aPreAutoCorrectString); - if (bModified && aString.indexOf(' ') != -1) - { - // Cell contains line breaks, enable wrapping - ScLineBreakCell aBreakItem(true); - pActiveViewSh->ApplyAttr(aBreakItem); - - SfxViewFrame* pViewFrm = SfxViewFrame::Current(); - if (pViewFrm) - pViewFrm->GetBindings().Invalidate(SID_ATTR_ALIGN_LINEBREAK); - } - // Test if valid (always with simple string) if (bModified && nValidation) {