1
0
mirror of https://github.com/moparisthebest/Simba synced 2024-11-29 04:22:16 -05:00

Temporary workaround for DTM editor crash.

This commit is contained in:
Merlijn Wajer 2010-07-23 13:17:48 +02:00
parent c6b1559af1
commit 8d852cf18f

View File

@ -321,8 +321,12 @@ end;
procedure ResetBuffer; procedure ResetBuffer;
begin begin
{
Freeing the BmpBuffer here causes access violations.
It will have to investigated later.
if (bmpBuffer <> nil) then if (bmpBuffer <> nil) then
bmpBuffer.Free; bmpBuffer.Free;
}
bmpBuffer := bmp.Copy(0, 0, bmp.Width - 1, bmp.Height - 1); bmpBuffer := bmp.Copy(0, 0, bmp.Width - 1, bmp.Height - 1);
BufferChanged := False; BufferChanged := False;