summaryrefslogtreecommitdiff
path: root/accessibility/source/extended/textwindowaccessibility.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'accessibility/source/extended/textwindowaccessibility.cxx')
-rw-r--r--accessibility/source/extended/textwindowaccessibility.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/accessibility/source/extended/textwindowaccessibility.cxx b/accessibility/source/extended/textwindowaccessibility.cxx
index 905e3fff5cd5..6487d3730fed 100644
--- a/accessibility/source/extended/textwindowaccessibility.cxx
+++ b/accessibility/source/extended/textwindowaccessibility.cxx
@@ -1913,6 +1913,7 @@ void Document::handleParagraphNotifications()
if (sal::static_int_cast<sal_Int32>(n) < m_nSelectionFirstPara)
--m_nSelectionFirstPara;
else if (sal::static_int_cast<sal_Int32>(n) == m_nSelectionFirstPara)
+ {
if (m_nSelectionFirstPara == m_nSelectionLastPara)
{
m_nSelectionFirstPara = -1;
@@ -1925,6 +1926,7 @@ void Document::handleParagraphNotifications()
++m_nSelectionFirstPara;
m_nSelectionFirstPos = 0;
}
+ }
if (sal::static_int_cast<sal_Int32>(n) < m_nSelectionLastPara)
--m_nSelectionLastPara;
else if (sal::static_int_cast<sal_Int32>(n) == m_nSelectionLastPara)