Skip to content

Commit

Permalink
MenuPowers: Fix regression/crash when not using tabs
Browse files Browse the repository at this point in the history
  • Loading branch information
dorkster committed Sep 21, 2024
1 parent d806769 commit dde1c0c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion src/MenuPowers.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1523,7 +1523,9 @@ void MenuPowers::render() {
// tab background (if not menu-sized)
tab_dest = window_area;
tab_dest.x += tab_area.x;
tab_dest.y += tab_area.y + tab_control->getTabHeight();
tab_dest.y += tab_area.y;
if (tab_control)
tab_area.y += tab_control->getTabHeight();

setBackgroundClip(src);
setBackgroundDest(dest);
Expand Down
2 changes: 1 addition & 1 deletion src/Version.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ FLARE. If not, see http://www.gnu.org/licenses/

#include <SDL.h>

Version VersionInfo::ENGINE(1, 14, 57);
Version VersionInfo::ENGINE(1, 14, 58);
Version VersionInfo::MIN(0, 0, 0);
Version VersionInfo::MAX(USHRT_MAX, USHRT_MAX, USHRT_MAX);

Expand Down

0 comments on commit dde1c0c

Please sign in to comment.