Fix for fdo#35513: avoid crash while processing incorrect range of pages
This commit is contained in:
parent
0398b25463
commit
b7d874f49b
1 changed files with 3 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue