[Libreoffice-commits] core.git: vcl/workben

Stephan Bergmann (via logerrit) logerrit at kemper.freedesktop.org
Fri Sep 27 09:05:37 UTC 2019


 vcl/workben/vcldemo.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 71a327528f1f7ffabd157e258528888855ab6f01
Author:     Stephan Bergmann <sbergman at redhat.com>
AuthorDate: Fri Sep 27 08:33:41 2019 +0200
Commit:     Stephan Bergmann <sbergman at redhat.com>
CommitDate: Fri Sep 27 11:04:10 2019 +0200

    Error: attempt to subscript container with out-of-bounds index 24
    
    ...doing `bin/run vcldemo` and clicking on the third column in the third row
    
    Change-Id: Ibe93f701a1ebf2447d5f5240e9a4ecab378918ef
    Reviewed-on: https://gerrit.libreoffice.org/79665
    Tested-by: Jenkins
    Reviewed-by: Stephan Bergmann <sbergman at redhat.com>

diff --git a/vcl/workben/vcldemo.cxx b/vcl/workben/vcldemo.cxx
index 29d148158b9a..74dc6fb5671e 100644
--- a/vcl/workben/vcldemo.cxx
+++ b/vcl/workben/vcldemo.cxx
@@ -1382,7 +1382,7 @@ public:
                 LoadAllImages();
 
                 Point aLocation(0,maIcons[0].GetSizePixel().Height() + 8);
-                for (size_t i = 0; i < 100; i++)
+                for (size_t i = 0; i < maIcons.size(); i++)
                 {
                     BitmapEx aSrc = maIcons[i];
 


More information about the Libreoffice-commits mailing list