diff options
author | Jens-Heiner Rechtien <hr@openoffice.org> | 2010-07-22 13:00:15 +0200 |
---|---|---|
committer | Jens-Heiner Rechtien <hr@openoffice.org> | 2010-07-22 13:00:15 +0200 |
commit | 7ca1af93428fb82f98b6f30af8a85b7faf11ae1d (patch) | |
tree | 3e183ff5cee9abf04e20d99a97ef02ee5cdf8fe3 /accessibility | |
parent | 53c2830488b066d962c2ea65f070406de89c89cf (diff) | |
parent | 5914f1a08b1ca5d0b9fe59b8a12403d9a65d3430 (diff) |
CWS-TOOLING: integrate CWS tl81_OOO330
Diffstat (limited to 'accessibility')
-rw-r--r-- | accessibility/source/extended/textwindowaccessibility.cxx | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/accessibility/source/extended/textwindowaccessibility.cxx b/accessibility/source/extended/textwindowaccessibility.cxx index 04b07215d372..8af1b240343e 100644 --- a/accessibility/source/extended/textwindowaccessibility.cxx +++ b/accessibility/source/extended/textwindowaccessibility.cxx @@ -1989,10 +1989,14 @@ void Document::handleParagraphNotifications() determineVisibleRange(); notifyVisibleRangeChanges(aOldVisibleBegin, aOldVisibleEnd, m_xParagraphs->end()); - Paragraphs::iterator aIt(m_xParagraphs->begin() + n); - ::rtl::Reference< ParagraphImpl > xParagraph(getParagraph(aIt)); - if (xParagraph.is()) - xParagraph->textChanged(); + + if (n < m_xParagraphs->size()) + { + Paragraphs::iterator aIt(m_xParagraphs->begin() + n); + ::rtl::Reference< ParagraphImpl > xParagraph(getParagraph(aIt)); + if (xParagraph.is()) + xParagraph->textChanged(); + } break; } default: |