diff options
author | Justin Luth <jluth@mail.com> | 2024-10-02 12:15:31 -0400 |
---|---|---|
committer | Justin Luth <jluth@mail.com> | 2024-10-03 13:32:53 +0200 |
commit | 55a8fce5d76bba0657ed76c85439fac8d1d00c8d (patch) | |
tree | 9d9910d7062d04f9a114f398b01e4bb50dbe0d77 /sc/source/ui/app | |
parent | c3d6ceea874af90e81322ad205fcda62a1ab9890 (diff) |
... 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 <jluth@mail.com>
Diffstat (limited to 'sc/source/ui/app')
-rw-r--r-- | sc/source/ui/app/inputhdl.cxx | 12 |
1 files changed, 0 insertions, 12 deletions
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('\n') != -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) { |