include/sfx2/thumbnailview.hxx | 2 +- sfx2/inc/recentdocsview.hxx | 2 +- sfx2/inc/templatedefaultview.hxx | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-)
New commits: commit e9d9ea41b7a3dc6271b9b7fe173a94e96543030a Author: Dan Williams <[email protected]> AuthorDate: Fri Dec 19 10:03:21 2025 -0600 Commit: Adolfo Jayme Barrientos <[email protected]> CommitDate: Tue Feb 3 11:34:22 2026 +0100 tdf#169971 fix call order of derived ThumbnailView UpdateColors() method Derived class' UpdateColors() methods should be called rather than the base class method, otherwise the derived classes can't set the colors they want. Fixes an error in the patch for tdf#169727. Change-Id: I2f5828a81f1e4732e171f43d7407244e3f6e25a2 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/195942 Tested-by: Jenkins Reviewed-by: Ilmari Lauhakangas <[email protected]> (cherry picked from commit 5140e19a2d709339a986fa9fa1cf16ec185f444d) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/196103 Reviewed-by: Xisco Fauli <[email protected]> (cherry picked from commit f8f854c580ec77edfee42136679883151128220a) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/198584 Reviewed-by: Adolfo Jayme Barrientos <[email protected]> diff --git a/include/sfx2/thumbnailview.hxx b/include/sfx2/thumbnailview.hxx index a85d07c76401..7fff921a8129 100644 --- a/include/sfx2/thumbnailview.hxx +++ b/include/sfx2/thumbnailview.hxx @@ -262,7 +262,7 @@ protected: virtual void OnItemDblClicked (ThumbnailViewItem *pItem); // Update internal colors from system color scheme or other sources - SAL_DLLPRIVATE void UpdateColors(const StyleSettings& rSettings); + virtual void UpdateColors(const StyleSettings& rSettings); protected: diff --git a/sfx2/inc/recentdocsview.hxx b/sfx2/inc/recentdocsview.hxx index 13beacc0db1e..fa811e39205f 100644 --- a/sfx2/inc/recentdocsview.hxx +++ b/sfx2/inc/recentdocsview.hxx @@ -86,7 +86,7 @@ public: void setFilter(ApplicationType aFilter); protected: - void UpdateColors(const StyleSettings& rSettings); + void UpdateColors(const StyleSettings& rSettings) override; private: virtual bool MouseButtonDown( const MouseEvent& rMEvt ) override; diff --git a/sfx2/inc/templatedefaultview.hxx b/sfx2/inc/templatedefaultview.hxx index 0bfd88c2c07e..286d5355c30d 100644 --- a/sfx2/inc/templatedefaultview.hxx +++ b/sfx2/inc/templatedefaultview.hxx @@ -26,7 +26,7 @@ public: void createContextMenu(); protected: - void UpdateColors(const StyleSettings& rSettings); + void UpdateColors(const StyleSettings& rSettings) override; }; /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
