0022749: Segfault in HashCode() of Standard_Transient
[occt.git] / src / Graphic2d / Graphic2d_Buffer.cxx
index 56d7061..68432a3 100755 (executable)
@@ -311,7 +311,7 @@ printf(" Graphic2d_Buffer::ReLoad(%d)\n",ResetPosition);
 #endif
        if( !myDriver.IsNull() ) {
 
-           myBufferId = this->HashCode(IntegerLast());
+           myBufferId = ::HashCode ((Standard_Address)this, IntegerLast());
 
            // Maximum depth of primitive lines
            // contained in the buffer is required