1.4.5 - draw - text - text jumps bottom-right on cursor move

Reported bugs that have been closed and/or resolved

Moderators: helmut, XnTriq, xnview, Dreamer

Post Reply
User avatar
user0
XnThusiast
Posts: 2409
Joined: Sat May 09, 2015 9:37 am

1.4.5 - draw - text - text jumps bottom-right on cursor move

Post by user0 »

XnViewMP 1.4.5 64bit
Windows11 (22H2), display resolution 3840x2160, win scaling 150%


Draw - text
text jumps bottom-right on cursor move

To reproduce:
1. open any image in Draw
2. select 'Add text' tool
- add some text
- click on image to place text and hold mouse button

issue A
center of cursor does not match red dashed selection rectangular

issue B
3. move mouse in any direction (blue arrow)
text will jump from its original position to bottom-right direction

draw_text_jumps.png




Related
Last edited by user0 on Wed Oct 25, 2023 2:31 pm, edited 4 times in total.
User avatar
xnview
Author of XnView
Posts: 46235
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: 1.4.5 - draw - text - text jumps bottom-right on cursor move

Post by xnview »

:bugconfirmed: Thanks to your detailed description I can reproduce the problem.
Pierre.
User avatar
xnview
Author of XnView
Posts: 46235
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: 1.4.5 - draw - text - text jumps bottom-right on cursor move

Post by xnview »

This problem is supposed to be fixed in XnView MP 1.5.0 beta. Please check and confirm the bug fix here.
Pierre.
User avatar
user0
XnThusiast
Posts: 2409
Joined: Sat May 09, 2015 9:37 am

Re: 1.4.5 - draw - text - text jumps bottom-right on cursor move

Post by user0 »

1.5.0b1
A - still remain, but I think its not a bug
B - fixed, but there are related issues below

To reproduce:
1. run clean portable XnViewMP
2. open any image in Draw
3. select Text tool
4. click ~30 times while moving cursor over image (in order to insert default text multiple times)

issue C
- sometimes (1 out of 5) text still appears in top-left corner for a split of the second

issue D1
5. close Draw dialog
app will crash

issue D2
5. click Undo button to remove all Text
- all text will be removed
- toolbar: selection will move from Text tool to Selection Tool
6. click on image (toolbar: Selection is selected)
- toolbar: Text tool will be selected
- text will be pasted
app will crash
User avatar
xnview
Author of XnView
Posts: 46235
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: 1.4.5 - draw - text - text jumps bottom-right on cursor move

Post by xnview »

user0 wrote: Sat Jun 17, 2023 12:34 pm A - still remain, but I think its not a bug
right not a bug, the move point is top left not center
To reproduce:
issue C
- sometimes (1 out of 5) text still appears in top-left corner for a split of the second
Right, will be fixed in b2
issue D1
5. close Draw dialog
app will crash
Right, will be fixed in b2
issue D2
5. click Undo button to remove all Text
- all text will be removed
- toolbar: selection will move from Text tool to Selection Tool
yes it's normal behavior.
6. click on image (toolbar: Selection is selected)
- toolbar: Text tool will be selected
- text will be pasted
app will crash
I don't understand how to reproduce?
Pierre.
User avatar
user0
XnThusiast
Posts: 2409
Joined: Sat May 09, 2015 9:37 am

Re: 1.4.5 - draw - text - text jumps bottom-right on cursor move

Post by user0 »

xnview wrote: Mon Jun 19, 2023 11:42 am
issue D2
5. click Undo button to remove all Text
- all text will be removed
- toolbar: selection will move from Text tool to Selection Tool
yes it's normal behavior.
its OK that focus jumps to Selection tool when you Undo till the start,
its not OK that when you click on image - Text tool will be activated and text will be pasted
Selection tool shall be active one


Another related issue:
- add 3 lines (it can be any tool)
- press Undo once
toolbar: focus will move from Line to Selection Tool
- click on image
Line tool will be activated and line pasted on image

its a bug because if you press Redo - Line tool will be activated,
that means app remembers selected tool at each step, and there is no reason to shift focus to Selection while doing Undo


xnview wrote: Mon Jun 19, 2023 11:42 am
6. click on image (toolbar: Selection is selected)
- toolbar: Text tool will be selected
- text will be pasted
app will crash
I don't understand how to reproduce?
its like this:
3. select Text tool
4. click ~30 times while moving cursor over image (in order to insert default text multiple times)
5. click Undo button until all Text is removed
6. click on image
app will crash
User avatar
xnview
Author of XnView
Posts: 46235
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: 1.4.5 - draw - text - text jumps bottom-right on cursor move

Post by xnview »

user0 wrote: Mon Jun 19, 2023 2:21 pm its OK that focus jumps to Selection tool when you Undo till the start,
its not OK that when you click on image - Text tool will be activated and text will be pasted
Selection tool shall be active one
ok i understand now
Pierre.
User avatar
user0
XnThusiast
Posts: 2409
Joined: Sat May 09, 2015 9:37 am

Re: 1.4.5 - draw - text - text jumps bottom-right on cursor move

Post by user0 »

all fixed in 1.5.0b2
Post Reply