From ce54f48dc3b3d069a86bf31c0a60976999c2b713 Mon Sep 17 00:00:00 2001 From: wp_xxyyzz Date: Mon, 13 Oct 2014 18:22:38 +0000 Subject: [PATCH] spktoolbar: Fix crash when resizing form git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@3648 8e941d3f-bd1b-0410-a28a-d453659cc2b4 --- components/spktoolbar/SpkToolbar/SpkToolbar.pas | 2 ++ 1 file changed, 2 insertions(+) diff --git a/components/spktoolbar/SpkToolbar/SpkToolbar.pas b/components/spktoolbar/SpkToolbar/SpkToolbar.pas index cc4141e8b..9b437a3b6 100644 --- a/components/spktoolbar/SpkToolbar/SpkToolbar.pas +++ b/components/spktoolbar/SpkToolbar/SpkToolbar.pas @@ -1657,6 +1657,8 @@ begin if FMetricsValid then exit; + FBuffer.Free; + FBuffer := TBitmap.Create; FBuffer.SetSize(self.Width, self.Height); // *** Zak³adki ***