add warning about bad input

Change-Id: I7018813740460c79d09318770fbdcb24a24a441e
This commit is contained in:
Markus Mohrhard
2014-08-17 10:20:43 +02:00
parent 3604dc4ffc
commit b1d2bbecac

View File

@@ -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,