[Libreoffice-commits] .: sw/source

Caolán McNamara caolan at kemper.freedesktop.org
Tue Sep 20 02:58:57 PDT 2011


 sw/source/core/doc/doc.cxx |    3 +++
 1 file changed, 3 insertions(+)

New commits:
commit b7d874f49b102eabe2974c4dee1272d2cf6053a3
Author: Ivan Timofeev <timofeev.i.s at gmail.com>
Date:   Tue Sep 20 10:55:50 2011 +0100

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

diff --git a/sw/source/core/doc/doc.cxx b/sw/source/core/doc/doc.cxx
index 34d7a96..d83ab53 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;


More information about the Libreoffice-commits mailing list