QTfrontend/hwmap.cpp
changeset 443 eec37eb7f5db
parent 291 afa378f1e961
child 486 7ea71cd3acd5
--- a/QTfrontend/hwmap.cpp	Wed Feb 14 20:05:20 2007 +0000
+++ b/QTfrontend/hwmap.cpp	Wed Feb 14 22:15:55 2007 +0000
@@ -42,7 +42,7 @@
 
 void HWMap::onClientDisconnect()
 {
-  QImage im((uchar*)(const char*)readbuffer, 256, 128, QImage::Format_Mono);
+  QImage im((uchar*)(readbuffer.constData()), 256, 128, QImage::Format_Mono);
   im.setNumColors(2);
   emit ImageReceived(im);
 }