|
|
@ -157,14 +157,17 @@ namespace NLGUI
|
|
|
|
// ***************************************************************************
|
|
|
|
// ***************************************************************************
|
|
|
|
void CDBViewQuantity::draw ()
|
|
|
|
void CDBViewQuantity::draw ()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
// change text
|
|
|
|
if( _Number.hasValue() && _NumberMax.hasValue() )
|
|
|
|
sint32 val= _Number.getSInt32();
|
|
|
|
|
|
|
|
sint32 valMax= _NumberMax.getSInt32();
|
|
|
|
|
|
|
|
if(_Cache!=val || _CacheMax!=valMax)
|
|
|
|
|
|
|
|
{
|
|
|
|
{
|
|
|
|
_Cache= val;
|
|
|
|
// change text
|
|
|
|
_CacheMax=valMax;
|
|
|
|
sint32 val= _Number.getSInt32();
|
|
|
|
buildTextFromCache();
|
|
|
|
sint32 valMax= _NumberMax.getSInt32();
|
|
|
|
|
|
|
|
if(_Cache!=val || _CacheMax!=valMax)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
_Cache= val;
|
|
|
|
|
|
|
|
_CacheMax=valMax;
|
|
|
|
|
|
|
|
buildTextFromCache();
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// parent call
|
|
|
|
// parent call
|
|
|
|