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:
@@ -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,
|
||||
|
Reference in New Issue
Block a user