[Libreoffice-commits] .: Branch 'libreoffice-3-4' - sw/source

Michael Meeks michael at kemper.freedesktop.org
Wed Sep 21 03:57:27 PDT 2011


 sw/source/core/doc/doc.cxx |    5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

New commits:
commit a0b3fc96fe985068fc794646570a0f74568941ec
Author: Ivan Timofeev <timofeev.i.s at 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.meeks at 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;


More information about the Libreoffice-commits mailing list