tdf#104488 sw: assert if exception escapes from UpdateAccessible()

SwViewShellImp::UpdateAccessible() is called during scrolling and the
like, and if the a11y code doesn't catch the exceptions the document
view won't get repainted.

Change-Id: I4ec591aacf514bef8c5a66a7e674b0cee3b7201a
This commit is contained in:
Michael Stahl
2016-12-15 23:08:53 +01:00
parent ffb5bf421f
commit 9ada2da6f1

View File

@@ -297,7 +297,17 @@ void SwViewShellImp::UpdateAccessible()
OSL_ENSURE( pWin, "no window, no access" );
if( IsAccessible() && rIDLA.GetCurrentViewShell() && pWin )
GetAccessibleMap().GetDocumentView();
{
try
{
GetAccessibleMap().GetDocumentView();
}
catch (uno::Exception const& e)
{
SAL_WARN("sw.a11y", "exception: " << e.Message);
assert(!"SwViewShellImp::UpdateAccessible: unhandled exception");
}
}
}
void SwViewShellImp::DisposeAccessible(const SwFrame *pFrame,