incubator-ooo-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject [Bug 119912] [From Symphony]Crash when redo split the pasted table
Date Fri, 08 Jun 2012 06:46:13 GMT
https://issues.apache.org/ooo/show_bug.cgi?id=119912

chenpeng2006@gmail.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |chenpeng2006@gmail.com

--- Comment #1 from chenpeng2006@gmail.com ---
Root Cause:
Chart data was disposed while undo the pasting, and the corresponding table
also has already been destructed, so it can not notify its owner chart data
provider to dismiss the chart data sequence, as the code below:
--------------------------------------------------------------------------------
       if (pDataProvider)
        {
            const SwTable* pTable = SwTable::FindTable( GetFrmFmt() );
            if (pTable)
            {
                uno::Reference< chart2::data::XDataSequence > xRef(
dynamic_cast< chart2::data::XDataSequence * >(this), uno::UNO_QUERY );
                pDataProvider->RemoveDataSequence( *pTable, xRef );
            }
--------------------------------------------------------------------------------
After all redo happens, the table will be split again, there is an invalidate
chart data sequence inside, then the DisposedException lead the crash.

Resolution:
While deleting any box from chart data provider, verify whether there are any
invalidate chart data sequence inside, if so, catch the exception and remove
it.

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

Mime
View raw message