summaryrefslogtreecommitdiff
path: root/vcl/workben
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2016-01-10 21:06:14 +0000
committerCaolán McNamara <caolanm@redhat.com>2016-01-10 21:06:14 +0000
commit9e5fb97292d6f3ed74f4ee71772a0457f2b3d46f (patch)
treea4e5d23a97cf1bbab494ad8dd79dbfd3fa0270ea /vcl/workben
parent680abab7710b7e8e6f2ba9cee37a5ccd224e2993 (diff)
avoid crash on vcldemo bad index
Change-Id: I3a778f41897da885ea039526e4701ebebfe57c4d
Diffstat (limited to 'vcl/workben')
-rw-r--r--vcl/workben/vcldemo.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/vcl/workben/vcldemo.cxx b/vcl/workben/vcldemo.cxx
index e3016b59f432..e293cc563a28 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];