summaryrefslogtreecommitdiff
path: root/canvas
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@googlemail.com>2014-08-17 10:20:43 +0200
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2014-09-02 01:08:48 +0200
commitb1d2bbecac27b4884d3a95c9f106d3cd11d6e4c9 (patch)
tree88d837c8572ade3c4c9e21acda60a181e9807d7c /canvas
parent3604dc4ffcdfe8b59d1d9bec91d1c253d006528e (diff)
add warning about bad input
Change-Id: I7018813740460c79d09318770fbdcb24a24a441e
Diffstat (limited to 'canvas')
-rw-r--r--canvas/source/tools/canvastools.cxx1
1 files changed, 1 insertions, 0 deletions
diff --git a/canvas/source/tools/canvastools.cxx b/canvas/source/tools/canvastools.cxx
index ae79cc954f89..e06d0170f9df 100644
--- a/canvas/source/tools/canvastools.cxx
+++ b/canvas/source/tools/canvastools.cxx
@@ -271,6 +271,7 @@ namespace canvas
}
virtual uno::Sequence< rendering::ARGBColor > SAL_CALL convertToARGB( const uno::Sequence< double >& deviceColor ) throw (lang::IllegalArgumentException, uno::RuntimeException, std::exception) SAL_OVERRIDE
{
+ SAL_WARN_IF(deviceColor.getLength() == 0, "canvas", "empty deviceColor argument");
const double* pIn( deviceColor.getConstArray() );
const sal_Size nLen( deviceColor.getLength() );
ENSURE_ARG_OR_THROW2(nLen%4==0,