diff options
Diffstat (limited to 'scribus/scribusdoc.cpp')
| -rw-r--r-- | scribus/scribusdoc.cpp | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/scribus/scribusdoc.cpp b/scribus/scribusdoc.cpp index 8c88e43..746eacf 100644 --- a/scribus/scribusdoc.cpp +++ b/scribus/scribusdoc.cpp @@ -6311,7 +6311,8 @@ void ScribusDoc::itemSelection_ApplyCharStyle(const CharStyle & newStyle, Select else { start = qMax(currItem->firstInFrame(), currItem->itemText.cursorPosition()); - length = (start + 1) < currItem->itemText.length()? 1 : 0; +//9876 length = (start + 1) < currItem->itemText.length()? 1 : 0; + length = start < currItem->itemText.length() ? 1 : 0; } } currItem->itemText.applyCharStyle(start, qMax(0, length), newStyle); @@ -6370,7 +6371,8 @@ void ScribusDoc::itemSelection_SetCharStyle(const CharStyle & newStyle, Selectio else { start = qMax(currItem->firstInFrame(), currItem->itemText.cursorPosition()); - length = (start + 1) < currItem->itemText.length()? 1 : 0; +//9876 length = (start + 1) < currItem->itemText.length()? 1 : 0; + length = start < currItem->itemText.length()? 1 : 0; } } currItem->itemText.setCharStyle(start, length, newStyle); @@ -6428,7 +6430,8 @@ void ScribusDoc::itemSelection_EraseCharStyle(Selection* customSelection) else { start = qMax(currItem->firstInFrame(), currItem->itemText.cursorPosition()); - length = (start + 1) < currItem->itemText.length()? 1 : 0; +//9876 length = (start + 1) < currItem->itemText.length()? 1 : 0; + length = start < currItem->itemText.length() ? 1 : 0; } } QString lastParent; |
