diff options
Diffstat (limited to 'src/gui/painting/qcolortrc_p.h')
-rw-r--r-- | src/gui/painting/qcolortrc_p.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/gui/painting/qcolortrc_p.h b/src/gui/painting/qcolortrc_p.h index 9e879bb3e2..6f9030fa3a 100644 --- a/src/gui/painting/qcolortrc_p.h +++ b/src/gui/painting/qcolortrc_p.h @@ -39,9 +39,11 @@ public: Table }; - bool isLinear() const + bool isIdentity() const { - return m_type == Type::Uninitialized || (m_type == Type::Function && m_fun.isLinear()); + return m_type == Type::Uninitialized + || (m_type == Type::Function && m_fun.isIdentity()) + || (m_type == Type::Table && m_table.isIdentity()); } bool isValid() const { |