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

(-)sw/source/core/unocore/unochart.cxx (-1 / +13 lines)
Lines 1666-1675 Link Here
1666
                pDataSeq = static_cast< SwChartDataSequence * >( xRef.get() );
1666
                pDataSeq = static_cast< SwChartDataSequence * >( xRef.get() );
1667
                if (pDataSeq)
1667
                if (pDataSeq)
1668
                {
1668
                {
1669
					try
1670
					{
1669
#if OSL_DEBUG_LEVEL > 1
1671
#if OSL_DEBUG_LEVEL > 1
1670
                    OUString aRangeStr( pDataSeq->getSourceRangeRepresentation() );
1672
                    OUString aRangeStr( pDataSeq->getSourceRangeRepresentation() );
1671
#endif
1673
#endif
1672
                    bNowEmpty = pDataSeq->DeleteBox( rBox );
1674
                    bNowEmpty = pDataSeq->DeleteBox( rBox );
1675
					}
1676
					catch (lang::DisposedException&)
1677
					{
1678
						bNowEmpty = sal_True;
1679
						bSeqDisposed = sal_True;
1680
					}
1681
					
1673
                    if (bNowEmpty)
1682
                    if (bNowEmpty)
1674
                        aDelIt = aIt;
1683
                        aDelIt = aIt;
1675
                }
1684
                }
Lines 1679-1685 Link Here
1679
            if (bNowEmpty)
1688
            if (bNowEmpty)
1680
			{
1689
			{
1681
                rSet.erase( aDelIt );
1690
                rSet.erase( aDelIt );
1682
				if (pDataSeq)
1691
				if (pDataSeq && !bSeqDisposed)
1683
					pDataSeq->dispose();    // the current way to tell chart that sth. got removed
1692
					pDataSeq->dispose();    // the current way to tell chart that sth. got removed
1684
			}
1693
			}
1685
        }
1694
        }
Lines 2622-2627 Link Here
2622
2631
2623
sal_Bool SwChartDataSequence::DeleteBox( const SwTableBox &rBox )
2632
sal_Bool SwChartDataSequence::DeleteBox( const SwTableBox &rBox )
2624
{
2633
{
2634
	if (bDisposed)
2635
		throw lang::DisposedException();
2636
2625
#if OSL_DEBUG_LEVEL > 1
2637
#if OSL_DEBUG_LEVEL > 1
2626
	String aBoxName( rBox.GetName() );
2638
	String aBoxName( rBox.GetName() );
2627
#endif
2639
#endif

Return to issue 119912