From 0e8cf92f17e9b4544e725d73b16bc32362db1fa4 Mon Sep 17 00:00:00 2001 From: Chris Tallon Date: Sat, 31 Mar 2007 13:39:18 +0000 Subject: [PATCH] Fix for possible crash when removing bar --- vvideorec.cc | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/vvideorec.cc b/vvideorec.cc index 1f6fb33..6e7c4a8 100644 --- a/vvideorec.cc +++ b/vvideorec.cc @@ -803,5 +803,11 @@ void VVideoRec::removeBar() barScanHold = false; barVasHold = false; rectangle(barRegion, transparent); - viewman->updateView(this, &barRegion); + + Message* m = new Message(); + m->message = Message::REDRAW; + m->to = ViewMan::getInstance(); + m->from = this; + m->parameter = (ULONG)&barRegion; + Command::getInstance()->postMessageFromOuterSpace(m); } -- 2.39.2