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
path: root/intern
diff options
context:
space:
mode:
authorKarsten Weiss <>2016-12-15 04:56:48 +0300
committerCampbell Barton <ideasman42@gmail.com>2016-12-15 04:58:19 +0300
commit820709c14d3917db86c6c392df75a32d52c53ca2 (patch)
tree5e11f59b014b39a88d73c0442297afdc56b03dd2 /intern
parent741c4082d822baa0b3b3b948460de39cee607089 (diff)
Fix STR_String Capitalize on non Win32
Harmless since its not used, but good to fix.
Diffstat (limited to 'intern')
-rw-r--r--intern/string/intern/STR_String.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/intern/string/intern/STR_String.cpp b/intern/string/intern/STR_String.cpp
index 4ea451311e4..4612c91b6a6 100644
--- a/intern/string/intern/STR_String.cpp
+++ b/intern/string/intern/STR_String.cpp
@@ -545,9 +545,9 @@ STR_String& STR_String::Capitalize()
if (this->m_len > 1) _strlwr(this->m_data + 1);
#else
if (this->m_len > 0)
- this->m_data[0] = (this->m_data[0] >= 'A' && this->m_data[0] <= 'A') ? this->m_data[0] + 'a' - 'A' : this->m_data[0];
+ this->m_data[0] = (this->m_data[0] >= 'a' && this->m_data[0] <= 'z') ? this->m_data[0] + 'A' - 'a' : this->m_data[0];
for (int i = 1; i < this->m_len; i++)
- this->m_data[i] = (this->m_data[i] >= 'a' && this->m_data[i] <= 'z') ? this->m_data[i] + 'A' - 'a' : this->m_data[i];
+ this->m_data[i] = (this->m_data[i] >= 'A' && this->m_data[i] <= 'Z') ? this->m_data[i] + 'a' - 'A' : this->m_data[i];
#endif
return *this;
}