include/svx/Palette.hxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 94b5e1fd70a76d10d20bd3859d808d256420180b
Author:     Tomaž Vajngerl <tomaz.vajng...@collabora.co.uk>
AuthorDate: Sun Jul 30 08:44:02 2023 +0200
Commit:     Miklos Vajna <vmik...@collabora.com>
CommitDate: Fri Aug 4 11:24:30 2023 +0200

    fix C/P typo that allowed setting LumMod color transform value 0
    
    should be m_nLumOff instead of m_nLumMod
    
    Change-Id: I14b04fb0fecad949a41abf752d2ac05ceed5ba83
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/155112
    Tested-by: Jenkins
    Reviewed-by: Tomaž Vajngerl <qui...@gmail.com>
    (cherry picked from commit 144d16443a74839f885dc9597bee1e48493b278f)
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/155158
    Reviewed-by: Miklos Vajna <vmik...@collabora.com>

diff --git a/include/svx/Palette.hxx b/include/svx/Palette.hxx
index a701ae9d99ae..c108a1679d98 100644
--- a/include/svx/Palette.hxx
+++ b/include/svx/Palette.hxx
@@ -60,7 +60,7 @@ struct SVXCORE_DLLPUBLIC NamedColor
             if (m_nLumMod != 10000)
                 
aComplexColor.addTransformation({model::TransformationType::LumMod, m_nLumMod});
 
-            if (m_nLumMod != 0)
+            if (m_nLumOff != 0)
                 
aComplexColor.addTransformation({model::TransformationType::LumOff, m_nLumOff});
         }
         else

Reply via email to