Merge pull request #9 from eshifri/eshifri/checkbox_fix
fix for #444: Accidentally altering a checkbox.
This commit is contained in:
@@ -29,6 +29,9 @@ class CheckBox : public FormField {
|
||||
_getValue(std::move(getValue)),
|
||||
_setValue(std::move(setValue))
|
||||
{
|
||||
coord_t size = min(rect.w, rect.h);
|
||||
setWidth(size);
|
||||
setHeight(size);
|
||||
}
|
||||
|
||||
#if defined(DEBUG_WINDOWS)
|
||||
|
||||
Reference in New Issue
Block a user