From c314f5b5f3e40709e6b6603b7ab637e595a335fe Mon Sep 17 00:00:00 2001 From: wp_xxyyzz Date: Wed, 12 Oct 2022 21:10:54 +0000 Subject: [PATCH] tvplanit/PrintPreview: Clear preview when all print formats are deleted. git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@8546 8e941d3f-bd1b-0410-a28a-d453659cc2b4 --- components/tvplanit/source/vpedfmtlst.pas | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/tvplanit/source/vpedfmtlst.pas b/components/tvplanit/source/vpedfmtlst.pas index 9c0ad6feb..3b8e6e650 100644 --- a/components/tvplanit/source/vpedfmtlst.pas +++ b/components/tvplanit/source/vpedfmtlst.pas @@ -258,7 +258,7 @@ begin Prn.CurFormat := fmtIdx; UpdatePreview; end else - ; // to do: clear preview + PrintPreview.ForceUpdate; EnableFormatButtons(true); EnableElementButtons(true); end;