View Issue Details

IDProjectCategoryView StatusLast Update
0010985ScribusStory Editor / Text Framespublic2018-04-30 13:24
ReporterJLuc Assigned To 
PrioritynormalSeverityminorReproducibilityhave not tried
Status confirmedResolutionopen 
Product Version1.5.0svn 
Target Version1.5.5 
Summary0010985: jump over line when going down in text frame
DescriptionCreate text with 5 lines
Line 1 is longer than line 2
for ex :

goto end of line (after last charp of note 1)
go down with keyboard arrow down :
--> editing carret jumps down to begginnig note 3
one more keyboard arrow down :
editing carret goes down to character in line 4 at position of end of line of line 1 (or end of line if shorter)

When moving up, no such "jump" problem.

Edit:
Still persists in OSX 10.10.5 1.5.3svn r21352
Steps To ReproduceReproduce:
1) open attached file
2) put cursor on line 1 1 char before the end
3) press down arrow
Result: We're now on line 3
4) press down arrow again
Result: We're now on line 5

5a) press up arrow 4 times
Result: We've gone up lines 4 through 1 with the cursor at the end of the line
OR
5b) press down arrow
Result: We're at the end of line 5
6b) press up arrow 4 times
Result: We're now going up the same column of characters to the top (as opposed to step 5a)
TagsNo tags attached.
PatchNo

Relationships

has duplicate 0014165 closedPeterBenedek While editing Scribus skips multiple paragraphs (skips paragraphs if paragraph empty) 
related to 0005089 confirmed issue with jumping between lines and moving cursor 
child of 0003157 acknowledged Metabug: Cursor placement fixes 

Activities

cezaryece

2012-08-02 07:23

updater   ~0028725

Last edited: 2012-08-02 07:25

diff --git Scribus/scribus/text/storytext.cpp Scribus/scribus/text/storytext.cpp
index f9b0aa1..87ebeba 100644
--- Scribus/scribus/text/storytext.cpp
+++ Scribus/scribus/text/storytext.cpp
@@ -1433,8 +1433,8 @@ int StoryText::nextLine(int pos)
                     return j;
                 }
             }
- m_lastMagicPos = ls2.lastItem + 1;
- return ls2.lastItem + 1;
+ m_lastMagicPos = ls2.lastItem;
+ return ls2.lastItem;
         }
     }
     return lastFrameItem;

cezaryece

2012-08-02 07:26

updater   ~0028726

simply fix for that issue

jghali

2012-08-02 07:27

administrator   ~0028727

Last edited: 2012-08-02 08:03

Yes, that's what i tried. Unfortunately this patch cause another issue when cursor goes to the last line of the frame : in some case cursor is positioned before the last char instead of after.

Kunda

2016-05-25 04:57

updater  

weird-line-cursor-jump.gif (127,421 bytes)   
weird-line-cursor-jump.gif (127,421 bytes)   

Kunda

2016-05-25 05:03

updater   ~0041410

Still persists in OSX 10.10.5 1.5.3svn r21352
Reproduce:
1) open attached file
2) put cursor on line 1 1 char before the end
3) press down arrow
Result: We're now on line 3
4) press down arrow again
Result: We're now on line 5

5a) press up arrow 4 times
Result: We've gone up lines 4 through 1 with the cursor at the end of the line
OR
5b) press down arrow
Result: We're at the end of line 5
6b) press up arrow 4 times
Result: We're now going up the same column of characters to the top (as opposed to step 5a)

Kunda

2016-05-25 05:04

updater  

line-jump-example.sla (14,378 bytes)

Issue History

Date Modified Username Field Change
2012-08-01 11:18 JLuc New Issue
2012-08-02 07:23 cezaryece Note Added: 0028725
2012-08-02 07:25 cezaryece Note Edited: 0028725
2012-08-02 07:26 cezaryece Note Added: 0028726
2012-08-02 07:26 cezaryece Assigned To => jghali
2012-08-02 07:26 cezaryece Status new => assigned
2012-08-02 07:27 jghali Note Added: 0028727
2012-08-02 08:03 jghali Note Edited: 0028727
2012-08-02 13:42 cezaryece Assigned To jghali =>
2015-09-17 20:08 Kunda Category Story Editor / Text Frames => Story Ed/Txt Frames
2015-09-17 20:12 Kunda Category Story Ed/Txt Frames => Story Editor / Text Frames
2016-05-24 13:20 Kunda Relationship added related to 0005089
2016-05-24 14:19 Kunda Relationship added child of 0003157
2016-05-25 04:57 Kunda File Added: weird-line-cursor-jump.gif
2016-05-25 05:03 Kunda Note Added: 0041410
2016-05-25 05:03 Kunda Patch => No
2016-05-25 05:03 Kunda Description Updated
2016-05-25 05:03 Kunda Steps to Reproduce Updated
2016-05-25 05:04 Kunda File Added: line-jump-example.sla
2016-05-25 05:04 Kunda Target Version => 1.5.4.svn
2016-05-25 05:04 Kunda Status assigned => confirmed
2018-03-20 07:19 PeterBenedek Relationship added has duplicate 0014165
2018-04-30 13:24 jghali Target Version 1.5.4.svn => 1.5.5