Unit::LAST_UNIT_DO_NOT_USE used to mark a dimension which doesn't have units.

This commit is contained in:
Roman Telezhynskyi 2023-10-08 07:41:16 +03:00
parent 5fb441c9ba
commit 9f42d88394

View File

@ -506,8 +506,7 @@ auto UnitsToStr(const Unit &unit, const bool translate) -> QString
case Unit::Px:
return translate ? QObject::tr("px") : unitPX;
case Unit::LAST_UNIT_DO_NOT_USE:
Q_UNREACHABLE();
break;
return {};
case Unit::Cm:
default:
return translate ? QObject::tr("cm") : unitCM;