Oops, forgot to set 'erasing' flag on decoding
authorunc0rr
Tue, 29 May 2012 22:21:19 +0400
changeset 7146 a822413207c9
parent 7145 1d1a14b39400
child 7148 c7ee9592c9a1
child 7149 08a30dd92900
Oops, forgot to set 'erasing' flag on decoding
QTfrontend/drawmapscene.cpp
--- a/QTfrontend/drawmapscene.cpp	Mon May 28 22:42:59 2012 +0400
+++ b/QTfrontend/drawmapscene.cpp	Tue May 29 22:21:19 2012 +0400
@@ -271,7 +271,8 @@
 
             quint8 penWidth = flags & 0x3f;
             m_pen.setWidth(deserializePenWidth(penWidth));
-            if(flags & 0x40)
+            params.erasing = flags & 0x40;
+            if(params.erasing)
                 m_pen.setBrush(m_eraser);
             else
                 m_pen.setBrush(m_brush);