fix imagegaps being added when there's no image

This commit is contained in:
speedie 2023-03-01 12:06:31 +01:00
parent e3738a139c
commit 93d1e74a9e
3 changed files with 3 additions and 3 deletions

View file

@ -1,4 +1,4 @@
spmenu.font: Noto Regular 8
spmenu.font: Noto Sans Mono 8
spmenu.col_itemnormfg: #bbbbbb
spmenu.col_itemnormbg: #222222
spmenu.col_itemselfg: #eeeeee

View file

@ -35,7 +35,7 @@ static int borderwidth = 2; /* Width of the border */
static int bordercentered = 1; /* Draw border only when centered */
/* Font options */
static char font[] = "Noto Regular 8"; /* Font to draw text and Pango markup with. */
static char font[] = "Noto Sans Mono 8"; /* Font to draw text and Pango markup with. */
/* Symbol options */
static char *leftarrow = "<"; /* Left arrow, used to indicate you can move to the left */

View file

@ -499,7 +499,7 @@ drawmenu(void)
if (lines > 0) {
#if USEIMAGE
if (imagewidth)
if (imagewidth && image)
x += imagegaps + imagewidth;
#endif
/* draw grid */