mirror of
https://github.com/labwc/labwc.git
synced 2026-04-06 07:15:40 -04:00
Guard for possible null menu buffer
Guard for possible null menu buffer, attempt 2
This commit is contained in:
parent
308a3291cb
commit
2591661005
1 changed files with 2 additions and 2 deletions
|
|
@ -376,7 +376,7 @@ title_create_scene(struct menuitem *menuitem, int *item_y)
|
|||
assert(menuitem->type == LAB_MENU_TITLE);
|
||||
struct menu *menu = menuitem->parent;
|
||||
struct theme *theme = rc.theme;
|
||||
struct bufferset *bufferset;
|
||||
struct bufferset *bufferset = NULL;
|
||||
|
||||
float *bg_color = theme->menu_title_bg_color;
|
||||
float *text_color = theme->menu_title_text_color;
|
||||
|
|
@ -443,7 +443,7 @@ title_create_scene(struct menuitem *menuitem, int *item_y)
|
|||
wlr_scene_node_set_position(&title_font_buffer->scene_buffer->node,
|
||||
title_x, title_y);
|
||||
|
||||
if (rc.theme->menu_title_border_type) {
|
||||
if (bufferset && rc.theme->menu_title_border_type) {
|
||||
renderBufferset(bufferset, bg_width, theme->menu_item_height, 0);
|
||||
}
|
||||
error:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue