To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=114005





------- Additional comments from liujia...@openoffice.org Mon Aug 23 07:40:41 
+0000 2010 -------
Liujianli->OD:
Hi OD,
I am interested in this issue and I have been working on it.
I found the aPam was miscalculated in the SwEditShell::SetCurNumRule method in
the (sw\source\core\edit)ednumber.cxx

Before second time call SwDoc::SetNumRule method in the "For cycle", the aPam 's
both member m_pMark and m_pPoint were same。 so I am focus on the
SwPamRanges::SetPam method, but it just to get PamRange( rTmp's member nStart
and nEnd were same, but the selection was last two paragaraph, this is the point
) and assign the value to the Pam's m_pMark and m_pPoint.

I think the issue happen when was doing SwPamRanges constructor. Obviously the
main point was SwPamRanges::Insert method. First two times aRg was not made any
change but inserted into the _SwPamRanges, but the third time aRg.nStart >
aRg.nEnd so that the two variables was exchanged and then the following code
will be executed and made aRg.nEnd changed, but I don't konw why aRg.nEnd and
aRg.nStart will be exchanged when aRg.nStart > aRg.nEnd.

Wound you like give me some suggestion to fix this issue?

code:

if( Count() && Seek_Entry( aRg, &nPos ))  // suche Insert Position
{
    // ist der im Array stehende kleiner ??
    if( ( pTmp = GetData()+ nPos )->nEnd < aRg.nEnd )
    {
        aRg.nEnd = pTmp->nEnd;
        Remove( nPos, 1 );  // zusammenfassen
    }
    else
        return;  // ende, weil schon alle zusammengefasst waren
}


---------------------------------------------------------------------
Please do not reply to this automatically generated notification from
Issue Tracker. Please log onto the website and enter your comments.
http://qa.openoffice.org/issue_handling/project_issues.html#notification

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@sw.openoffice.org
For additional commands, e-mail: issues-h...@sw.openoffice.org


---------------------------------------------------------------------
To unsubscribe, e-mail: allbugs-unsubscr...@openoffice.org
For additional commands, e-mail: allbugs-h...@openoffice.org

Reply via email to