Bug report #8506
In the Label Section- option Type case - Capitalize first letter don't work
|Affected QGIS version:||master||Regression?:||No|
|Operating System:||Easy fix?:||No|
|Pull Request or Patch supplied:||No||Resolution:||duplicate|
|Crashes QGIS or corrupts data:||No||Copied to github as #:||17266|
In the label properties, when choose to set the "Type case" ,
the option "Capitalize first letters" don't work, it return always the all uppercase letters.
Instead the option "all lowercase" work correctly.
#3 Updated by belg4mit - about 6 years ago
- Status changed from Closed to Reopened
This was closed prematurely, it does not work as advertised. The problem is that the function assumes the input is already lowercase, whereas official sources e.g; MassGIS; may store text as all uppercase. The solution is to lc() the string before ucfirst().