From 71a327528f1f7ffabd157e258528888855ab6f01 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Fri, 27 Sep 2019 08:33:41 +0200 Subject: 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 --- vcl/workben/vcldemo.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'vcl/workben/vcldemo.cxx') 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]; -- cgit