projects
/
rocksndiamonds.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e0e100a
)
added checking for NULL pointer for drawing wrapped info text
author
Holger Schemel
<holger.schemel@virtion.de>
Fri, 6 Dec 2024 17:01:55 +0000
(18:01 +0100)
committer
Holger Schemel
<holger.schemel@virtion.de>
Fri, 6 Dec 2024 12:05:06 +0000
(13:05 +0100)
src/screens.c
patch
|
blob
|
history
diff --git
a/src/screens.c
b/src/screens.c
index 651b6830113ae4047c6668dd1ebc52ab4691777e..478d57387a5bbaf421fb699fe592caee28137648 100644
(file)
--- a/
src/screens.c
+++ b/
src/screens.c
@@
-4440,7
+4440,7
@@
static void DrawInfoScreen_GenericScreen(int screen_nr, int num_screens, int use
SetWrappedText_GenericScreen(tmi, screen_nr, use_global_screens);
- if (wrapped_text->total_height > wrapped_text->max_height)
+ if (wrapped_text
!= NULL && wrapped_text
->total_height > wrapped_text->max_height)
{
// re-wrap text with text width reduced by scroll bar width
tmi->width -= SC_SCROLL_VERTICAL_XSIZE;