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 | |
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')
-rw-r--r-- | canvas/source/cairo/cairo_spritecanvas.cxx | 2 | ||||
-rw-r--r-- | canvas/source/vcl/spritecanvas.cxx | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/canvas/source/cairo/cairo_spritecanvas.cxx b/canvas/source/cairo/cairo_spritecanvas.cxx index 00ddd6c66cb7..1ec6f7e65810 100644 --- a/canvas/source/cairo/cairo_spritecanvas.cxx +++ b/canvas/source/cairo/cairo_spritecanvas.cxx @@ -65,7 +65,7 @@ namespace cairocanvas 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, "CairoSpriteCanvas::initialize: wrong number of arguments, or wrong types" ); 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" ); |