[Libreoffice-commits] core.git: sd/source

Muthu Subramanian muthu.subramanian.karunanidhi at ericsson.com
Sun Apr 19 05:42:35 PDT 2015


 sd/source/core/drawdoc3.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 174f205fa24ccf72e9a479d6be901144418f899e
Author: Muthu Subramanian <muthu.subramanian.karunanidhi at ericsson.com>
Date:   Sun Apr 19 18:13:16 2015 +0530

    tdf#90357: Fix crash while pasting into draw from impress.
    
    Change-Id: Iff0b072f0968e1e3e54617bd6903019ef3edb1ac

diff --git a/sd/source/core/drawdoc3.cxx b/sd/source/core/drawdoc3.cxx
index ec5416c..33e457b 100644
--- a/sd/source/core/drawdoc3.cxx
+++ b/sd/source/core/drawdoc3.cxx
@@ -929,7 +929,7 @@ bool SdDrawDocument::InsertBookmarkAsPage(
             for(sal_uInt32 p = nInsertPos; p < (nInsertPos + nBMSdPageCount); p++)
             {
                 SdPage *pPg = static_cast<SdPage *>( GetPage(p) );
-                for(size_t i = 0; i < pPg->GetObjCount(); ++i)
+                for(size_t i = 0; pPg && (i < pPg->GetObjCount()); ++i)
                 {
                     if(pPg->GetObj(i)->GetStyleSheet())
                     {


More information about the Libreoffice-commits mailing list