diff --git a/accessibility/source/extended/textwindowaccessibility.cxx b/accessibility/source/extended/textwindowaccessibility.cxx index 71e6c780cf92..6691856c5f92 100644 --- a/accessibility/source/extended/textwindowaccessibility.cxx +++ b/accessibility/source/extended/textwindowaccessibility.cxx @@ -2131,7 +2131,7 @@ void Document::notifySelectionChange( sal_Int32 nFirst, sal_Int32 nLast ) iLast = m_aVisibleEnd; if ( iFirst < iLast ) { - for ( Paragraphs::iterator i = iFirst; i != iLast; i++ ) + for ( Paragraphs::iterator i = iFirst; i != iLast; ++i ) { ::rtl::Reference< ParagraphImpl > xParagraph( getParagraph( i ) ); if ( xParagraph.is() )