diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2019-10-05 13:45:14 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2019-10-05 16:01:33 +0200 |
commit | 108d1b7c62bba7220f0e61bba8bb04ccc545bc63 (patch) | |
tree | 6590888b0547820667f42c3e9276566bbe5e06f4 /canvas/source/vcl | |
parent | 86875a2e910bcc1a9d2c47c34ea5f71501776193 (diff) |
The checks should apparenty be maArguments.getLength() >= 5
...given that maArguments[4] is accessed two lines further down, in both cases.
Looks like typos in b6a7c4da52acf45a7b69d1e81cf9548f8552752e "INTEGRATION: CWS
canvas05".
Change-Id: Iee8a111126f2b81c9e586fe8e3c569fbd81dd8f4
Reviewed-on: https://gerrit.libreoffice.org/80289
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'canvas/source/vcl')
-rw-r--r-- | canvas/source/vcl/spritecanvas.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/canvas/source/vcl/spritecanvas.cxx b/canvas/source/vcl/spritecanvas.cxx index 90697dda794d..1a2580f6c852 100644 --- a/canvas/source/vcl/spritecanvas.cxx +++ b/canvas/source/vcl/spritecanvas.cxx @@ -82,7 +82,7 @@ namespace vclcanvas 4: XWindow for creating Window (or empty for VirtualDevice) 5: SystemGraphicsData as a streamed Any */ - ENSURE_ARG_OR_THROW( maArguments.getLength() >= 4 && + ENSURE_ARG_OR_THROW( maArguments.getLength() >= 5 && maArguments[0].getValueTypeClass() == uno::TypeClass_HYPER && maArguments[4].getValueTypeClass() == uno::TypeClass_INTERFACE, "VCLSpriteCanvas::initialize: wrong number of arguments, or wrong types" ); |