Commit 034760db authored by Halla Rempt's avatar Halla Rempt
Browse files

BUG:354907 Fix crash in artistic text tool selection.

Check bounds before accessing an array.
parent 50c4cf93
......@@ -118,7 +118,7 @@ QPainterPath ArtisticTextToolSelection::outline()
int globalCharIndex = m_selectionStart;
int remainingChars = m_selectionCount;
while (remainingChars) {
while (remainingChars && ranges.size() > charPos.first) {
const ArtisticTextRange &currentRange = ranges[charPos.first];
int currentTextLength = currentRange.text().length();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment