Commit ef8b63a7 authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen

SettingValue: Assert when setting limits to a non-clamped value

parent fe6d7833
......@@ -93,6 +93,7 @@ SettingValue::flags() const
void
SettingValue::setLimits( const QVariant& min, const QVariant& max )
{
Q_ASSERT_X( ( ( m_flags & Clamped ) != 0 ), "SettingVaklue", "Setting limits to a non-clamped value" );
if ( min.isValid() == true )
m_min = min;
if ( max.isValid() == true )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment