sw/source/core/doc/doc.cxx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)
New commits: commit a0b3fc96fe985068fc794646570a0f74568941ec Author: Ivan Timofeev <timofeev....@gmail.com> Date: Wed Sep 21 11:57:47 2011 +0100 Fix for fdo#35513: avoid crash while processing incorrect range of pages Signed-off-by: Michael Meeks <michael.me...@novell.com> diff --git a/sw/source/core/doc/doc.cxx b/sw/source/core/doc/doc.cxx index 0086fc9..369594a 100644 --- a/sw/source/core/doc/doc.cxx +++ b/sw/source/core/doc/doc.cxx @@ -1628,7 +1628,10 @@ void SwDoc::CalculatePagePairsForProspectPrinting( std::vector< sal_Int32 > aPagesToPrint; StringRangeEnumerator::getRangesFromString( aPageRange, aPagesToPrint, 1, nDocPageCount, 0 ); - + + if (aPagesToPrint.empty()) + return; + // now fill the vector for calculating the page pairs with the start frames // from the above obtained vector std::vector< const SwPageFrm * > aVec; _______________________________________________ Libreoffice-commits mailing list Libreoffice-commits@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits