summaryrefslogtreecommitdiff
path: root/canvas
diff options
context:
space:
mode:
Diffstat (limited to 'canvas')
-rw-r--r--canvas/source/tools/verifyinput.cxx37
1 files changed, 17 insertions, 20 deletions
diff --git a/canvas/source/tools/verifyinput.cxx b/canvas/source/tools/verifyinput.cxx
index c5764b38f7aa..9e15738302b4 100644
--- a/canvas/source/tools/verifyinput.cxx
+++ b/canvas/source/tools/verifyinput.cxx
@@ -550,34 +550,31 @@ namespace canvas
throw lang::IllegalArgumentException();
#endif
}
- else
+ if( bitmapLayout.ColorSpace->getBitsPerPixel() < 0 )
{
- if( bitmapLayout.ColorSpace->getBitsPerPixel() < 0 )
- {
#if OSL_DEBUG_LEVEL > 0
- throw lang::IllegalArgumentException(
- OUString::createFromAscii(pStr) +
- ": verifyInput(): bitmap layout's ColorSpace getBitsPerPixel() is negative",
- xIf, nArgPos );
+ throw lang::IllegalArgumentException(
+ OUString::createFromAscii(pStr) +
+ ": verifyInput(): bitmap layout's ColorSpace getBitsPerPixel() is negative",
+ xIf, nArgPos );
#else
- throw lang::IllegalArgumentException();
+ throw lang::IllegalArgumentException();
#endif
- }
+ }
- if( bitmapLayout.ColorSpace->getEndianness() < util::Endianness::LITTLE ||
- bitmapLayout.ColorSpace->getEndianness() > util::Endianness::BIG )
- {
+ if( bitmapLayout.ColorSpace->getEndianness() < util::Endianness::LITTLE ||
+ bitmapLayout.ColorSpace->getEndianness() > util::Endianness::BIG )
+ {
#if OSL_DEBUG_LEVEL > 0
- throw lang::IllegalArgumentException(
- OUString::createFromAscii(pStr) +
- ": verifyInput(): bitmap layout's ColorSpace getEndianness() value is out of range (" +
- OUString::number(sal::static_int_cast<sal_Int32>(bitmapLayout.ColorSpace->getEndianness())) +
- " not known)",
- xIf, nArgPos );
+ throw lang::IllegalArgumentException(
+ OUString::createFromAscii(pStr) +
+ ": verifyInput(): bitmap layout's ColorSpace getEndianness() value is out of range (" +
+ OUString::number(sal::static_int_cast<sal_Int32>(bitmapLayout.ColorSpace->getEndianness())) +
+ " not known)",
+ xIf, nArgPos );
#else
- throw lang::IllegalArgumentException();
+ throw lang::IllegalArgumentException();
#endif
- }
}
}