Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJiri Hnidek <jiri.hnidek@tul.cz>2005-09-20 21:28:23 +0400
committerJiri Hnidek <jiri.hnidek@tul.cz>2005-09-20 21:28:23 +0400
commit61c341a1526239624c261413ac35259e025ce6df (patch)
tree4666e25c7e5858db59c2bb02d83bd4f688d2c362 /source/blender/src/drawtime.c
parentff22c1de20994d3ced0eac45c8d24c06c7ed28eb (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.c2
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)),