diff options
author | jghali <jghali@11d20701-8431-0410-a711-e3c959e3b870> | 2012-07-14 12:03:03 +0000 |
---|---|---|
committer | jghali <jghali@11d20701-8431-0410-a711-e3c959e3b870> | 2012-07-14 12:03:03 +0000 |
commit | bb575c59499f457fb4a9b79d93ab8f300a87e0e9 (patch) | |
tree | 1e4ebe78a70cd0bd8f7749430b74c1bfdf28d31c | |
parent | 92fcd333aa3e139b16838abbb2c424f2ba6c7d2e (diff) | |
download | scribus-bb575c59499f457fb4a9b79d93ab8f300a87e0e9.tar.gz scribus-bb575c59499f457fb4a9b79d93ab8f300a87e0e9.tar.xz scribus-bb575c59499f457fb4a9b79d93ab8f300a87e0e9.zip |
#10879: End key not working when carret is before last char in frame
git-svn-id: svn://scribus.net/branches/Version14x/Scribus@17714 11d20701-8431-0410-a711-e3c959e3b870
-rw-r--r-- | scribus/pageitem_textframe.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scribus/pageitem_textframe.cpp b/scribus/pageitem_textframe.cpp index 26d780a..5684d5d 100644 --- a/scribus/pageitem_textframe.cpp +++ b/scribus/pageitem_textframe.cpp @@ -3100,7 +3100,7 @@ void PageItem_TextFrame::handleModeEditKey(QKeyEvent *k, bool& keyRepeat) case Qt::Key_End: // go to end of line len = lastInFrame(); - if ( itemText.cursorPosition() >= len ) + if ( itemText.cursorPosition() >= (len + 1) ) break; // at end of frame if ( (buttonModifiers & Qt::ControlModifier) == 0 ) { |