diff options
author | Caolán McNamara <cmc@openoffice.org> | 2010-08-03 10:25:58 +0100 |
---|---|---|
committer | Caolán McNamara <cmc@openoffice.org> | 2010-08-03 10:25:58 +0100 |
commit | 4ba1224b5e746ccfaac66b4d5dc74d7b49a91a0b (patch) | |
tree | f11995b0d063591594308417cc87fbe30b5e6ae8 /accessibility/source/extended/textwindowaccessibility.cxx | |
parent | 39123c969ac9b94845814b39b5b2618840f1e4d9 (diff) | |
parent | 2ae7ed978e22dbb6fc5e84c3dc686ab4bb9e1cec (diff) |
cmcfixes77: merge with DEV300 m86
Diffstat (limited to 'accessibility/source/extended/textwindowaccessibility.cxx')
-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: |