summaryrefslogtreecommitdiff
path: root/svx/source/editeng/impedit3.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'svx/source/editeng/impedit3.cxx')
-rw-r--r--svx/source/editeng/impedit3.cxx14
1 files changed, 13 insertions, 1 deletions
diff --git a/svx/source/editeng/impedit3.cxx b/svx/source/editeng/impedit3.cxx
index 93bbf1915ab0..d272991953c5 100644
--- a/svx/source/editeng/impedit3.cxx
+++ b/svx/source/editeng/impedit3.cxx
@@ -344,7 +344,19 @@ IMPL_LINK( ImpEditEngine, OnlineSpellHdl, Timer *, EMPTYARG )
IMPL_LINK_INLINE_START( ImpEditEngine, IdleFormatHdl, Timer *, EMPTYARG )
{
aIdleFormatter.ResetRestarts();
- FormatAndUpdate( aIdleFormatter.GetView() );
+
+ // #i97146# check if that view is still available
+ // else probably the idle format timer fired while we're already
+ // downing
+ EditView* pView = aIdleFormatter.GetView();
+ for( sal_uInt16 nView = 0; nView < aEditViews.Count(); nView++ )
+ {
+ if( aEditViews[nView] == pView )
+ {
+ FormatAndUpdate( pView );
+ break;
+ }
+ }
return 0;
}
IMPL_LINK_INLINE_END( ImpEditEngine, IdleFormatHdl, Timer *, EMPTYARG )