https://bugs.freedesktop.org/show_bug.cgi?id=63339

Julien Nabet <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[email protected],
                   |                            |[email protected]

--- Comment #1 from Julien Nabet <[email protected]> ---
Michael: by taking a look to
http://opengrok.libreoffice.org/xref/core/editeng/source/lookuptree/LatinLookupTree.cxx#115,
 
    120     Node* pWalker = m_pCurrent;
    121 
    122     int distance = 0, nTargetProbability = 0;
    123     OUString sSuggestion;
    124 
    125     while ( pWalker->m_pSuggest && ( distance < 2 ||
    126         // Make sure the suggestion is at least 2 chars long.
    127         nTargetProbability == pWalker->m_nHighestProbaInSubtree ) )
    128     {
    129         if ( distance < 2 )
    130             nTargetProbability = pWalker->m_nHighestProbaInSubtree;
    131 
    132         // follow the tree along the suggested route
    133         pWalker = pWalker->m_pSuggest;
    134         ++distance;
    135         sSuggestion += OUString(pWalker->m_cKey);
    136     }

what about adding a check on pWalker line 125 to have:
while ( pWalker && pWalker->m_pSuggest && ( distance < 2 ||
?

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs

Reply via email to