diff options
author | Ivan Timofeev <timofeev.i.s@gmail.com> | 2011-09-20 10:55:50 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2011-09-20 10:55:50 +0100 |
commit | b7d874f49b102eabe2974c4dee1272d2cf6053a3 (patch) | |
tree | 58065895f77ca497949c8cd6c0f7ed1ea3a4f638 /sw | |
parent | 0398b2546349c469180b2433cc58d15fffa283bc (diff) |
Fix for fdo#35513: avoid crash while processing incorrect range of pages
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/core/doc/doc.cxx | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sw/source/core/doc/doc.cxx b/sw/source/core/doc/doc.cxx index 34d7a96223d8..d83ab53facff 100644 --- a/sw/source/core/doc/doc.cxx +++ b/sw/source/core/doc/doc.cxx @@ -1638,6 +1638,9 @@ void SwDoc::CalculatePagePairsForProspectPrinting( StringRangeEnumerator::getRangesFromString( aPageRange, aPagesToPrint, 1, nDocPageCount, 0 ); + if (!aPagesToPrint.size()) + return; + // now fill the vector for calculating the page pairs with the start frames // from the above obtained vector std::vector< const SwPageFrm * > aVec; |