check wether or not mBitmapArrayRects.empty(). not simply if size()

(cherry picked from commit fea81a4d57edff9c05bf397a5b21d8422838cc1c)
This commit is contained in:
AzaezelX 2023-03-06 15:22:11 -06:00
parent f1d42d3867
commit d6480cb63c
7 changed files with 26 additions and 26 deletions

View file

@ -524,7 +524,7 @@ void GuiControlProfile::setChildrenProfile(GuiControlProfile *prof)
RectI GuiControlProfile::getBitmapArrayRect(U32 i)
{
if(!mBitmapArrayRects.size())
if(mBitmapArrayRects.empty())
constructBitmapArray();
if( i >= mBitmapArrayRects.size())
@ -535,7 +535,7 @@ RectI GuiControlProfile::getBitmapArrayRect(U32 i)
S32 GuiControlProfile::constructBitmapArray()
{
if(mBitmapArrayRects.size())
if(!mBitmapArrayRects.empty())
return mBitmapArrayRects.size();
if( mBitmap.isNull() )