From 85a61dadd49284ae3255f93e25376d35dab962b4 Mon Sep 17 00:00:00 2001 From: Tomaž Vajngerl Date: Mon, 21 Dec 2020 13:04:18 +0900 Subject: ImplGraphic: set PrefSize, PrefMapMode without forcing a swap-in MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This adds methods to set the PrefSize, PrefMapMode directly with no forced swap-in. Use this setters during a swap-in as it is now safe to do so, otherwise it would cause an endless-loop. Change-Id: I52b424ffc920c5a760891672c1ef961c1b1c1b64 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/108253 Tested-by: Jenkins Reviewed-by: Tomaž Vajngerl --- vcl/inc/impgraph.hxx | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'vcl/inc') diff --git a/vcl/inc/impgraph.hxx b/vcl/inc/impgraph.hxx index 6a312a76d58e..86fa80606b8f 100644 --- a/vcl/inc/impgraph.hxx +++ b/vcl/inc/impgraph.hxx @@ -213,6 +213,11 @@ private: sal_Int32 getPageNumber() const; + // Set the pref size, but don't force swap-in + void setValuesForPrefSize(const Size& rPrefSize); + // Set the pref map mode, but don't force swap-in + void setValuesForPrefMapMod(const MapMode& rPrefMapMode); + public: void resetChecksum() { mnChecksum = 0; } bool swapIn(); -- cgit