From ac3e014109c702d342121490ddaaa4a506813948 Mon Sep 17 00:00:00 2001 From: wp_xxyyzz Date: Wed, 6 Jul 2016 20:04:13 +0000 Subject: [PATCH] tvplanit: Fix print format designer to react on selecting a different format. git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4928 8e941d3f-bd1b-0410-a28a-d453659cc2b4 --- components/tvplanit/source/vpedfmtlst.pas | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/components/tvplanit/source/vpedfmtlst.pas b/components/tvplanit/source/vpedfmtlst.pas index 64163b488..d11c02fdf 100644 --- a/components/tvplanit/source/vpedfmtlst.pas +++ b/components/tvplanit/source/vpedfmtlst.pas @@ -578,7 +578,10 @@ begin Prn.CurFormat := Idx; PrintPreview.ControlLink := ControlLink; - PrintPreview.Invalidate; + PrintPreview.ForceUpdate; + PrintPreview.FirstPage; + // PrintPreview.Invalidate; + for i := 0 to Pred(Prn.PrintFormats.Items[Idx].Elements.Count) do begin E := Prn.PrintFormats.Items[Idx].Elements.Items[i];