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