[Libreoffice-commits] core.git: vcl/workben
Caolán McNamara
caolanm at redhat.com
Sun Jan 10 13:07:09 PST 2016
vcl/workben/vcldemo.cxx | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
New commits:
commit 9e5fb97292d6f3ed74f4ee71772a0457f2b3d46f
Author: Caolán McNamara <caolanm at redhat.com>
Date: Sun Jan 10 21:06:14 2016 +0000
avoid crash on vcldemo bad index
Change-Id: I3a778f41897da885ea039526e4701ebebfe57c4d
diff --git a/vcl/workben/vcldemo.cxx b/vcl/workben/vcldemo.cxx
index e3016b5..e293cc5 100644
--- a/vcl/workben/vcldemo.cxx
+++ b/vcl/workben/vcldemo.cxx
@@ -1288,7 +1288,8 @@ public:
drawBackground(rDev, aWholeWin);
if (!bVDev /* want everything in the vdev */ &&
- mnSelectedRenderer >= 0)
+ mnSelectedRenderer >= 0 &&
+ static_cast<sal_uInt32>(mnSelectedRenderer) < maRenderers.size())
{
aCtx.meStyle = RENDER_EXPANDED;
RegionRenderer * r = maRenderers[mnSelectedRenderer];
More information about the Libreoffice-commits
mailing list