merge the formfield patch from ooo-build
[ooovba.git] / applied_patches / 0044-sc-cellsuno-avoid-early-destruction.diff
blob3df4e54b9291f0c6b9ba694ebd2168af89d52012
1 --- sc/source/ui/unoobj/cellsuno.cxx.old 2008-05-26 19:41:53.000000000 +0200
2 +++ sc/source/ui/unoobj/cellsuno.cxx 2008-05-28 16:28:53.000000000 +0200
3 @@ -1531,9 +1531,10 @@ void ScCellRangesBase::Notify( SfxBroadc
4 if ( aRanges.UpdateReference( rRef.GetMode(), pDoc, rRef.GetRange(),
5 rRef.GetDx(), rRef.GetDy(), rRef.GetDz() ) )
7 + uno::Reference<uno::XInterface> xInterface((cppu::OWeakObject*)this, uno::UNO_QUERY);
8 if (rRef.GetMode() == URM_INSDEL &&
9 aRanges.Count() == 1 &&
10 - ScTableSheetObj::getImplementation( (cppu::OWeakObject*)this ))
11 + ScTableSheetObj::getImplementation( xInterface ))
13 // #101755#; the range size of a sheet does not change
14 ScRange* pR = aRanges.First();