https://bugs.documentfoundation.org/show_bug.cgi?id=160346

--- Comment #8 from Patrick Luby (volunteer) <guibomac...@gmail.com> ---
With the following debug patch, I got attachment #193279 to load. Then, a see a
hang for 1 to 2 minutes if I click in an unselected cell (see sample in
attachment #193450):

diff --git a/sw/source/core/crsr/crsrsh.cxx b/sw/source/core/crsr/crsrsh.cxx
index 3e9ca93b3380..52d4093325ef 100644
--- a/sw/source/core/crsr/crsrsh.cxx
+++ b/sw/source/core/crsr/crsrsh.cxx
@@ -2298,7 +2298,9 @@ void SwCursorShell::UpdateCursor( sal_uInt16 eFlags, bool
bIdleEnd )
                               -m_aCharRect.Width() : m_aCharRect.Height());
         }

-        if( !bFirst && aOld == m_aCharRect )
+        // In tdf#160346, the width and height in both rectangles are 1 but
+        // X is the same, and Y is different. Maybe a pattern?
+        if( !bFirst && ( aOld == m_aCharRect || ( m_aCharRect.Width() <= 1 &&
m_aCharRect.Height() <= 1 ) ) )
             break;

         // if the layout says that we are after the 100th iteration still in

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to