Merge pull request #9 from eshifri/eshifri/checkbox_fix

fix for #444: Accidentally altering a checkbox.
This commit is contained in:
Raphael Coeffic
2021-07-31 18:11:17 +02:00
committed by GitHub
+3
View File
@@ -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)