summaryrefslogtreecommitdiff
path: root/extras/contributed/report_tool/reportengine/u_imprime.pas
diff options
context:
space:
mode:
authorGraeme Geldenhuys <graeme@mastermaths.co.za>2011-10-12 12:11:53 +0200
committerGraeme Geldenhuys <graeme@mastermaths.co.za>2011-10-12 12:11:53 +0200
commit9c0a644df44547bf6dd9cf0a1250084b237eeae4 (patch)
tree7bd96808a57df22f44edf0254bc49cad47e0b0d4 /extras/contributed/report_tool/reportengine/u_imprime.pas
parentc825590e0bbd214d3a04a8f4d1609c747480b436 (diff)
downloadfpGUI-9c0a644df44547bf6dd9cf0a1250084b237eeae4.tar.xz
pdf report: print preview form now gets given a T_Imprime instance
We don't access the global variable Imprime any more, instead we referenec the instance that was passed in via the constructor. This removes the cross-unit dependencies which are not a good design.
Diffstat (limited to 'extras/contributed/report_tool/reportengine/u_imprime.pas')
-rw-r--r--extras/contributed/report_tool/reportengine/u_imprime.pas2
1 files changed, 1 insertions, 1 deletions
diff --git a/extras/contributed/report_tool/reportengine/u_imprime.pas b/extras/contributed/report_tool/reportengine/u_imprime.pas
index a994167f..87b304e1 100644
--- a/extras/contributed/report_tool/reportengine/u_imprime.pas
+++ b/extras/contributed/report_tool/reportengine/u_imprime.pas
@@ -702,7 +702,7 @@ end;
procedure T_Imprime.CreateVisu;
begin
-F_Visu:= TF_Visu.Create(nil);
+F_Visu:= TF_Visu.Create(nil, self);
with F_Visu do
begin
Bv_Visu:= CreateBevel(F_Visu,(F_Visu.Width-FPapier.W) div 2,60+((F_Visu.Height-FPapier.H) div 2),