mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-13 11:43:49 +00:00
check wether or not mBitmapArrayRects.empty(). not simply if size()
(cherry picked from commit fea81a4d57edff9c05bf397a5b21d8422838cc1c)
This commit is contained in:
parent
f1d42d3867
commit
d6480cb63c
7 changed files with 26 additions and 26 deletions
|
|
@ -135,7 +135,7 @@ bool GuiFormCtrl::onWake()
|
|||
|
||||
mProfile->constructBitmapArray();
|
||||
|
||||
if(mProfile->mUseBitmapArray && mProfile->mBitmapArrayRects.size())
|
||||
if(mProfile->mUseBitmapArray && !mProfile->mBitmapArrayRects.empty())
|
||||
{
|
||||
mThumbSize.set( mProfile->mBitmapArrayRects[0].extent.x, mProfile->mBitmapArrayRects[0].extent.y );
|
||||
mThumbSize.setMax( mProfile->mBitmapArrayRects[1].extent );
|
||||
|
|
@ -204,7 +204,7 @@ bool GuiFormCtrl::resize(const Point2I &newPosition, const Point2I &newExtent)
|
|||
if( !Parent::resize(newPosition, newExtent) )
|
||||
return false;
|
||||
|
||||
if( !mAwake || !mProfile->mBitmapArrayRects.size() )
|
||||
if( !mAwake || mProfile->mBitmapArrayRects.empty())
|
||||
return false;
|
||||
|
||||
// Should the caption be modified because the title bar is too small?
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue