From 61804fcfa339dc789ebf99ed52d00a62cc195cb4 Mon Sep 17 00:00:00 2001 From: jesus Date: Wed, 4 Nov 2009 19:35:47 +0000 Subject: [PATCH] LazReport : Disable Ctrl+P when pbPrint:=False, from Javivf, issue #14971 git-svn-id: trunk@22434 - --- components/lazreport/source/lr_view.pas | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/lazreport/source/lr_view.pas b/components/lazreport/source/lr_view.pas index 23d50b8296..909f691966 100644 --- a/components/lazreport/source/lr_view.pas +++ b/components/lazreport/source/lr_view.pas @@ -911,7 +911,7 @@ begin begin if Chr(Key) = 'O' then LoadBtnClick(nil) else if Chr(Key) = 'S' then SaveBtnClick(nil) - else if (Chr(Key) = 'P') and PrintBtn.Enabled then PrintBtnClick(nil) + else if (Chr(Key) = 'P') and PrintBtn.Visible then PrintBtnClick(nil) else if Chr(Key) = 'F' then FindBtnClick(nil) else if (Chr(Key) = 'E') and N5.Visible then EditBtnClick(nil) end