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

Libreoffice Gerrit user logerrit at kemper.freedesktop.org
Fri Oct 19 14:26:01 UTC 2018


 sd/source/filter/eppt/pptx-epptooxml.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 834500c958899efd2bb51f47aa17242f892c202c
Author:     Caolán McNamara <caolanm at redhat.com>
AuthorDate: Fri Oct 19 10:06:37 2018 +0100
Commit:     Caolán McNamara <caolanm at redhat.com>
CommitDate: Fri Oct 19 16:24:28 2018 +0200

    index validity check looks dubious
    
    Change-Id: Iccbbeab3b52d1d7369c19e333756713b42e83830
    Reviewed-on: https://gerrit.libreoffice.org/61976
    Reviewed-by: Caolán McNamara <caolanm at redhat.com>
    Tested-by: Caolán McNamara <caolanm at redhat.com>

diff --git a/sd/source/filter/eppt/pptx-epptooxml.cxx b/sd/source/filter/eppt/pptx-epptooxml.cxx
index 503489f21ce6..56f85514bcc8 100644
--- a/sd/source/filter/eppt/pptx-epptooxml.cxx
+++ b/sd/source/filter/eppt/pptx-epptooxml.cxx
@@ -1164,7 +1164,7 @@ void PowerPointExport::ImplWriteNotes(sal_uInt32 nPageNum)
                 .makeStringAndClear());
 
     // add slide implicit relation to notes
-    if (mpSlidesFSArray.size() >= nPageNum)
+    if (nPageNum < mpSlidesFSArray.size())
         addRelation(mpSlidesFSArray[ nPageNum ]->getOutputStream(),
                     oox::getRelationship(Relationship::NOTESSLIDE),
                     OUStringBuffer()


More information about the Libreoffice-commits mailing list