sc/source/ui/view/viewdata.cxx |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

New commits:
commit e20cbd4bd7b1def2926ad48ecb3564597225d3b9
Author:     Marco Cecchetti <marco.cecche...@collabora.com>
AuthorDate: Mon Mar 11 22:21:13 2024 +0100
Commit:     Tomaž Vajngerl <qui...@gmail.com>
CommitDate: Fri Apr 12 05:25:55 2024 +0200

    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/+/164999
    Tested-by: Jenkins

diff --git a/sc/source/ui/view/viewdata.cxx b/sc/source/ui/view/viewdata.cxx
index 07a16aaa590a..f6684f0d201a 100644
--- a/sc/source/ui/view/viewdata.cxx
+++ b/sc/source/ui/view/viewdata.cxx
@@ -1753,7 +1753,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.

Reply via email to