diff options
Diffstat (limited to 'svx')
-rw-r--r-- | svx/source/form/labelitemwindow.cxx | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/svx/source/form/labelitemwindow.cxx b/svx/source/form/labelitemwindow.cxx index b364bd523ed8..eac9f68bb79b 100644 --- a/svx/source/form/labelitemwindow.cxx +++ b/svx/source/form/labelitemwindow.cxx @@ -37,7 +37,11 @@ void LabelItemWindow::SetOptimalSize() void LabelItemWindow::set_label(const OUString& rLabel, const LabelItemWindowType eType) { - m_xLabel->set_visible(false); // a11y announcement + // hide temporarily, to trigger a11y announcement for SHOWING event for + // the label with NOTIFICATION a11y role when label gets shown again below + if (!rLabel.isEmpty()) + m_xLabel->set_visible(false); + m_xLabel->set_label(rLabel); if ((eType == LabelItemWindowType::Text) || rLabel.isEmpty()) { |