View | Details | Raw Unified | Return to issue 119653
Collapse All | Expand All

(-)sw/source/core/unocore/unochart.cxx (+14 lines)
Lines 2590-2595 Link Here
2590
            else {
2590
            else {
2591
                DBG_ERROR( "table missing" );
2591
                DBG_ERROR( "table missing" );
2592
            }
2592
            }
2593
		
2594
		//Comment: The bug is crashed for an exception threw out in SwCharDataSequence::setModified(), just because
2595
		//the SwCharDataSequence object has been disposed. Actually, the former design of SwClient will disband 
2596
		//itself from the notification list in its destruction. But the SwCharDataSeqence wont be destructed but disposed
2597
		//in code (the data member SwChartDataSequence::bDisposed will be set to TRUE), the relationship between client
2598
		//and modification are not released. So any notification from modify object will lead said exception threw out.
2599
		//Recorrect the logic of code in SwChartDataSequence::Dispose(), release the relationship inside...
2600
		SwModify* pRegisteredIn = GetRegisteredInNonConst();
2601
		if (pRegisteredIn && pRegisteredIn->GetDepends())
2602
		{
2603
			pRegisteredIn->Remove(this);
2604
			pTblCrsr = NULL;
2605
		}
2606
		
2593
        }
2607
        }
2594
2608
2595
        // require listeners to release references to this object
2609
        // require listeners to release references to this object

Return to issue 119653