diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-15 09:27:54 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-15 09:27:54 +0000 |
commit | adb203bc05e3e36173cbd46b9951f79821a81799 (patch) | |
tree | 6e6739df9b3f0a567330a0dd7ee0e03ae70876a3 /include/svx/svdpagv.hxx | |
parent | Adding debian version 4:24.2.0-3. (diff) | |
download | libreoffice-adb203bc05e3e36173cbd46b9951f79821a81799.tar.xz libreoffice-adb203bc05e3e36173cbd46b9951f79821a81799.zip |
Merging upstream version 4:24.2.1.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'include/svx/svdpagv.hxx')
-rw-r--r-- | include/svx/svdpagv.hxx | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/include/svx/svdpagv.hxx b/include/svx/svdpagv.hxx index 777ca7d9b1..58354a3d8d 100644 --- a/include/svx/svdpagv.hxx +++ b/include/svx/svdpagv.hxx @@ -102,7 +102,8 @@ public: private: void ImpInvalidateHelpLineArea(sal_uInt16 nNum) const; - void SetLayer(const OUString& rName, SdrLayerIDSet& rBS, bool bJa); + // return true if changed, false if unchanged + bool SetLayer(const OUString& rName, SdrLayerIDSet& rBS, bool bJa); bool IsLayer(const OUString& rName, const SdrLayerIDSet& rBS) const; /// Let's see if the current Group (pCurrentGroup) is still inserted @@ -182,10 +183,13 @@ public: tools::Rectangle& MarkBound() { return aMarkBound; } tools::Rectangle& MarkSnap() { return aMarkSnap; } - void SetLayerVisible(const OUString& rName, bool bShow) { - SetLayer(rName, aLayerVisi, bShow); + bool SetLayerVisible(const OUString& rName, bool bShow) { + const bool bChanged = SetLayer(rName, aLayerVisi, bShow); + if (!bChanged) + return false; if(!bShow) AdjHdl(); InvalidateAllWin(); + return true; } bool IsLayerVisible(const OUString& rName) const { return IsLayer(rName, aLayerVisi); } |