diff options
Diffstat (limited to 'svx/source/unodraw/unoshap2.cxx')
-rw-r--r-- | svx/source/unodraw/unoshap2.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/svx/source/unodraw/unoshap2.cxx b/svx/source/unodraw/unoshap2.cxx index 4c3a1bcbd963..d7dbfd9a0a69 100644 --- a/svx/source/unodraw/unoshap2.cxx +++ b/svx/source/unodraw/unoshap2.cxx @@ -33,6 +33,7 @@ #include <com/sun/star/graphic/XGraphic.hpp> #include <com/sun/star/drawing/QRCode.hpp> #include <o3tl/any.hxx> +#include <o3tl/safeint.hxx> #include <tools/urlobj.hxx> #include <vcl/svapp.hxx> #include <osl/file.hxx> @@ -324,7 +325,7 @@ uno::Any SAL_CALL SvxShapeGroup::getByIndex( sal_Int32 Index ) if( !HasSdrObject() || GetSdrObject()->GetSubList() == nullptr ) throw uno::RuntimeException(); - if( Index<0 || GetSdrObject()->GetSubList()->GetObjCount() <= static_cast<size_t>(Index) ) + if( Index<0 || GetSdrObject()->GetSubList()->GetObjCount() <= o3tl::make_unsigned(Index) ) throw lang::IndexOutOfBoundsException(); SdrObject* pDestObj = GetSdrObject()->GetSubList()->GetObj( Index ); |