]> git.vomp.tv Git - vompclient-marten.git/commitdiff
Fix for possible crash when removing bar
authorChris Tallon <chris@vomp.tv>
Sat, 31 Mar 2007 13:39:18 +0000 (13:39 +0000)
committerChris Tallon <chris@vomp.tv>
Sat, 31 Mar 2007 13:39:18 +0000 (13:39 +0000)
vvideorec.cc

index 1f6fb334d1311accee70bb25d3eaf2e03882c6ca..6e7c4a8d09682c0b91a87771d487243876ca82ae 100644 (file)
@@ -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);
 }