]> git.mdlowis.com Git - proto/labwc.git/commit
menu: guard against negative sizes
authortokyo4j <hrak1529@gmail.com>
Sat, 3 May 2025 10:57:49 +0000 (19:57 +0900)
committerHiroaki Yamamoto <hrak1529@gmail.com>
Sun, 18 May 2025 21:51:42 +0000 (06:51 +0900)
commitf1c4720218627a15705ada48f21bd8df1477c3d7
tree2357ab304c4cdb248e632c025ce1b0e87244b08f
parent568bc71ca2cccdbf323a0b31484aebb22ada8561
menu: guard against negative sizes

For example, the size of a scene_rect for a menu item background could be
negative with:

  menu.width.max: 0
  menu.width.min: 0
src/menu/menu.c