Skip to content

Commit bbf4dc4

Browse files
committed
Follow style used elesewhere, fixes ImpulseAdventure#434
1 parent 5a5461e commit bbf4dc4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/elem/XListbox.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -618,7 +618,6 @@ bool gslc_ElemXListboxDraw(void* pvGui,void* pvElemRef,gslc_teRedrawType eRedraw
618618
nItemBaseY = nY0 + pListbox->nMarginH;
619619
char * acStr = (char *)"";
620620

621-
622621
// Loop through the items in the list
623622
int16_t nItemTop = pListbox->nItemTop;
624623
int16_t nItemCnt = pListbox->nItemCnt;
@@ -641,7 +640,8 @@ bool gslc_ElemXListboxDraw(void* pvGui,void* pvElemRef,gslc_teRedrawType eRedraw
641640
}
642641

643642
// Fetch the list item
644-
if (NULL == (acStr = gslc_ElemXListboxGetItemAddr(pListbox, nItemInd))) {
643+
acStr = gslc_ElemXListboxGetItemAddr(pListbox, nItemInd);
644+
if (NULL == acStr) {
645645
// TODO: Erorr handling
646646
break;
647647
}

0 commit comments

Comments
 (0)