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

New commits:
commit a6bc0272607590d1692db385be7f6fbfeb1a8fb4
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 13 14:06:47 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>

diff --git a/sc/source/ui/view/viewdata.cxx b/sc/source/ui/view/viewdata.cxx
index 9df5b7d8a2b6..c7bd25aabb51 100644
--- a/sc/source/ui/view/viewdata.cxx
+++ b/sc/source/ui/view/viewdata.cxx
@@ -1752,7 +1752,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