diff options
Diffstat (limited to 'source/blender/blenlib/intern/string.c')
-rw-r--r-- | source/blender/blenlib/intern/string.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/source/blender/blenlib/intern/string.c b/source/blender/blenlib/intern/string.c index 6b738fab45e..bbc135479ef 100644 --- a/source/blender/blenlib/intern/string.c +++ b/source/blender/blenlib/intern/string.c @@ -547,7 +547,13 @@ int BLI_natstrcmp(const char *s1, const char *s2) d1++; d2++; } - return tiebreaker; + + if (tiebreaker) + return tiebreaker; + + /* we might still have a different string because of lower/upper case, in + * that case fall back to regular string comparison */ + return strcmp(s1, s2); } void BLI_timestr(double _time, char *str, size_t maxlen) |