Patch level : 2.0 nopatch

Files correlati     : xvaga.dll
Ricompilazione Demo : [ ]
Commento            :

Evitata distruzione di timer con ID=0


git-svn-id: svn://10.65.10.50/trunk@11133 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
guy 2003-05-15 09:49:25 +00:00
parent bb631844ef
commit 7e7e4258cf

View File

@ -3665,14 +3665,17 @@ long xvt_timer_create(WINDOW win, long interval)
void xvt_timer_destroy(long id)
{
CAST_TWIN(id, w);
wxTimer*& t = w._timer;
if (t != NULL)
{
t->Stop();
delete t;
t = NULL;
}
if (id > 0L)
{
CAST_TWIN(id, w);
wxTimer*& t = w._timer;
if (t != NULL)
{
t->Stop();
delete t;
t = NULL;
}
}
}
///////////////////////////////////////////////////////////
@ -3879,7 +3882,7 @@ void xvt_vobj_move(WINDOW win, RCT *rctp)
{
CAST_WIN(win, w);
wxRect rct = NormalizeRCT(rctp);
w.Move(rctp->left, rctp->top);
w.Move(rct.x, rct.y);
w.SetClientSize(rct.width, rct.height);
}