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:
-rw-r--r--source/blender/blenlib/intern/string.c8
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)