diff options
author | Ahmad Samir <a.samirh78@gmail.com> | 2022-11-02 20:38:37 +0200 |
---|---|---|
committer | Ahmad Samir <a.samirh78@gmail.com> | 2022-11-10 21:43:21 +0200 |
commit | df82396123350b67c4696673eea09d3cec995ae9 (patch) | |
tree | 54b44018d0ae0b6650627504e459420327eda0b2 /src/gui/text/qtextlayout.cpp | |
parent | 3916c57718239793d0e5cad67f04bc9155b58408 (diff) |
QString: prevent crash in remove(pos, len)
If pos < 0, the code assumes it should count from end of string, i.e.
pos += size(); if pos is still < 0, do nothing.
Change-Id: I5a90a082ec2833835ce0240d40a271f711a33f7e
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src/gui/text/qtextlayout.cpp')
0 files changed, 0 insertions, 0 deletions