Fix for fdo#35513: avoid crash while processing incorrect range of pages

This commit is contained in:
Ivan Timofeev 2011-09-20 10:55:50 +01:00 committed by Caolán McNamara
parent 0398b25463
commit b7d874f49b

View file

@ -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;