sc/source/ui/view/viewdata.cxx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
New commits: commit 2eb19d7f738d490a06233026716b369fb4aa4353 Author: Marco Cecchetti <marco.cecche...@collabora.com> AuthorDate: Mon Mar 11 22:21:13 2024 +0100 Commit: Tomaž Vajngerl <qui...@gmail.com> CommitDate: Wed Mar 20 11:04:51 2024 +0100 lok: calc: not possible to select the cell adjacent to the edited one In the LOK case using the paper size for the printer case (wysiwyg) can make the cell background and visible area larger than needed which makes selecting the adjacent right cell impossible in some cases. Change-Id: I20edd62645692f30e432b1064bb9c85b3396dc32 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/164702 Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoff...@gmail.com> Reviewed-by: Tomaž Vajngerl <qui...@gmail.com> (cherry picked from commit a6bc0272607590d1692db385be7f6fbfeb1a8fb4) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/164881 diff --git a/sc/source/ui/view/viewdata.cxx b/sc/source/ui/view/viewdata.cxx index 0fabcd4077d6..4d8542477fc7 100644 --- a/sc/source/ui/view/viewdata.cxx +++ b/sc/source/ui/view/viewdata.cxx @@ -1754,7 +1754,9 @@ void ScViewData::SetEditEngine( ScSplitPos eWhich, Size aPaperSize = pView->GetActiveWin()->PixelToLogic( Size( nSizeXPix, nSizeYPix ), GetLogicMode() ); Size aPaperSizePTwips(nSizeXPTwips, nSizeYPTwips); - if ( bBreak && !bAsianVertical && SC_MOD()->GetInputOptions().GetTextWysiwyg() ) + // In the LOK case the following code can make the cell background and visible area larger + // than needed which makes selecting the adjacent right cell impossible in some cases. + if ( bBreak && !bAsianVertical && SC_MOD()->GetInputOptions().GetTextWysiwyg() && !bLOKActive ) { // if text is formatted for printer, use the exact same paper width // (and same line breaks) as for output.