summaryrefslogtreecommitdiff
path: root/include/vcl/print.hxx
diff options
context:
space:
mode:
authorJan-Marek Glogowski <glogow@fbihome.de>2021-09-20 17:55:37 +0200
committerJan-Marek Glogowski <glogow@fbihome.de>2021-09-27 11:46:18 +0200
commit1b7c53db87bb67eeb2591fbb186f7ac20eb00c68 (patch)
treec23577f4e3e6e626e019462f7c3e110cc498050f /include/vcl/print.hxx
parent074abfdfe446da400c43a7ff88e6d7b66edefa33 (diff)
WIN lazy init WinSalInfoPrinter graphics
... and while at it make stuff private and add _ to the newly private member variables. The new assert revealed a bug in the SalGraphics refcounting, because the virtual ReleaseGraphics is called from the destructor, which was probably also the reason for the HACK and comment in Printer::ImplReleaseFonts. Change-Id: I7af0bda19be6810dd8c0ea5b74604381e2047407 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/122371 Tested-by: Jenkins Reviewed-by: Jan-Marek Glogowski <glogow@fbihome.de>
Diffstat (limited to 'include/vcl/print.hxx')
-rw-r--r--include/vcl/print.hxx1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/vcl/print.hxx b/include/vcl/print.hxx
index e487e8aa82b5..b6ea7000436c 100644
--- a/include/vcl/print.hxx
+++ b/include/vcl/print.hxx
@@ -124,6 +124,7 @@ public:
protected:
virtual bool AcquireGraphics() const override;
virtual void ReleaseGraphics( bool bRelease = true ) override;
+ void ImplReleaseGraphics(bool bRelease = true);
virtual void ImplReleaseFonts() override;
virtual tools::Long GetGradientStepCount( tools::Long nMinRect ) override;