mirror of
https://port.numenaute.org/aleajactaest/khanat-code-old.git
synced 2024-11-23 07:16:15 +00:00
CDBViewQuantity shouldn't crash in the editor.
This commit is contained in:
parent
2e0f06f231
commit
836e2814d8
1 changed files with 10 additions and 7 deletions
|
@ -156,6 +156,8 @@ namespace NLGUI
|
|||
|
||||
// ***************************************************************************
|
||||
void CDBViewQuantity::draw ()
|
||||
{
|
||||
if( _Number.hasValue() && _NumberMax.hasValue() )
|
||||
{
|
||||
// change text
|
||||
sint32 val= _Number.getSInt32();
|
||||
|
@ -166,6 +168,7 @@ namespace NLGUI
|
|||
_CacheMax=valMax;
|
||||
buildTextFromCache();
|
||||
}
|
||||
}
|
||||
|
||||
// parent call
|
||||
CViewText::draw();
|
||||
|
|
Loading…
Reference in a new issue