Skip to content

Commit 585e460

Browse files
author
Kirk
committed
fix a checkin mistake - need to check if text is valid
1 parent b1d03e2 commit 585e460

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/qwiic_grbuffer.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -537,7 +537,7 @@ void QwGrBufferDevice::bitmap(uint8_t x0, uint8_t y0, QwBitmap& theBMP){
537537

538538
void QwGrBufferDevice::text(uint8_t x0, uint8_t y0, const char * text, uint8_t clr){
539539

540-
if(x0 >= _viewport.width || y0 >= _viewport.height )
540+
if(!text || x0 >= _viewport.width || y0 >= _viewport.height )
541541
return;
542542

543543
(_idraw.draw_text)(this, x0, y0, text, clr);

0 commit comments

Comments
 (0)