diff options
author | Jiri Hnidek <jiri.hnidek@tul.cz> | 2005-09-20 21:28:23 +0400 |
---|---|---|
committer | Jiri Hnidek <jiri.hnidek@tul.cz> | 2005-09-20 21:28:23 +0400 |
commit | 61c341a1526239624c261413ac35259e025ce6df (patch) | |
tree | 4666e25c7e5858db59c2bb02d83bd4f688d2c362 /source/blender/src/drawtime.c | |
parent | ff22c1de20994d3ced0eac45c8d24c06c7ed28eb (diff) |
- intrr said, that if(strlen(marker->name)>0) is a bit cumbersome ...
I hope, that current solution will not provoke him ;-)
Diffstat (limited to 'source/blender/src/drawtime.c')
-rw-r--r-- | source/blender/src/drawtime.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/src/drawtime.c b/source/blender/src/drawtime.c index 5915c1aaf83..00c2e438339 100644 --- a/source/blender/src/drawtime.c +++ b/source/blender/src/drawtime.c @@ -149,7 +149,7 @@ static void draw_marker(TimeMarker *marker) glDisable(GL_BLEND); /* and the marker name too, shifted slightly to the top-right */ - if(strlen(marker->name)>0) { + if(marker->name && marker->name[0]) { if(marker->flag & SELECT) { BIF_ThemeColor(TH_TEXT_HI); glRasterPos2f(xpos+(4.0*(xspace/xpixels)), |