Skip to content

Commit

Permalink
FIX(CSVRender::Object): Clamp scale edits in render window too
Browse files Browse the repository at this point in the history
  • Loading branch information
magicaldave committed Aug 25, 2024
1 parent 50465a3 commit daf82d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/opencs/view/render/object.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -713,7 +713,7 @@ void CSVRender::Object::setScale(float scale)
{
mOverrideFlags |= Override_Scale;

mScaleOverride = scale;
mScaleOverride = std::clamp(scale, 0.5f, 2.0f);

adjustTransform();
}
Expand Down

0 comments on commit daf82d4

Please sign in to comment.