[ooo-build-bugs] [Bug 30604] full stop of LibO after pasting table with hyperlink as RTF and clicking in pasted table

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Mon Oct 4 14:20:39 PDT 2010


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

--- Comment #2 from Michael Meeks <michael.meeks at novell.com> 2010-10-04 14:20:39 PDT ---

476     void lcl_SortedTabColInsert( SwTabCols &rToFill, const SwTableBox
*pBox,
477                        const SwFrmFmt *pTabFmt, const BOOL bHidden,
478                        const FASTBOOL bRefreshHidden )
479     {
480         const long nWish = pTabFmt->GetFrmSize().GetWidth();
481         const long nAct  = rToFill.GetRight() - rToFill.GetLeft();  // +1
why?
482
483         //Der Wert fuer die linke Kante der Box errechnet sich aus den
484         //Breiten der vorhergehenden Boxen.
485         USHORT nPos = 0;
486         USHORT nSum = 0;
487         USHORT nLeftMin = 0;
488         USHORT nRightMax = 0;
489         const SwTableBox  *pCur  = pBox;
490         const SwTableLine *pLine = pBox->GetUpper();
491         while ( pLine )
492         {   const SwTableBoxes &rBoxes = pLine->GetTabBoxes();
493             for ( USHORT i = 0; i < rBoxes.Count(); ++i )
494             {
495                 SwTwips nWidth =
rBoxes[i]->GetFrmFmt()->GetFrmSize().GetWidth();
496                 nSum = (USHORT)(nSum + nWidth);
497                 sal_uInt64 nTmp = nSum;
498                 nTmp *= nAct;
499                 nTmp /= nWish;
500                 if (rBoxes[i] != pCur)
501                 {
502                     if ( pLine == pBox->GetUpper() || 0 == nLeftMin )
503                         nLeftMin = (USHORT)(nTmp - nPos);

Program received signal SIGFPE, Arithmetic exception.
0xb7a58c88 in __udivdi3 () from
/opt/LOInstall/program/../basis-link/ure-link/lib/libgcc_s.so.1
(gdb) up
#1  0xaf854060 in lcl_SortedTabColInsert (rToFill=..., pBox=0xae7861b8,
pTabFmt=0xae784098, bHidden=0 '\000', bRefreshHidden=0)
    at /data/opt/OpenOffice/loffice/sw/source/core/table/swtable.cxx:499
499                 nTmp /= nWish;
(gdb) p nWish
$1 = 0

as expected; fun. Cor - out of interest how did you come up with this test ?
:-) you normally spend lots of time pasting as RTF ? or ... [ it is rather a
nice minimal test too - I'm impressed ].

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


More information about the ooo-build-bugs mailing list