Menu

#246 Previous image's Label appears on New or Opened image

v0.9.27
closed
nobody
None
1
2023-01-24
2022-02-10
No

Steps to reproduce:

  • Select Label tool, click somewhere in canvas
  • Type some text; do not submit it with [Enter] or [Tab] key
  • Click New and start a new drawing, or click Open and open an existing one

Expected behavior: The label being edited does not appear in the other picture.
Actual behavior: The label exists (though it is not visible yet, until you interact with it; e.g., hit [Backspace], click somewhere, etc.)

Discussion

  • Pere Pujal i Carabantes

    Yes, the text being edited is not cleared, the attached patch should fix that for open and new, please test.
    Pere

     
    • William Kendrick

      Thanks! Also threw "cursor_textwidth = 0;" in there, to get the insertion point cursor to move back to where any new text would appear if you hit New or Open, and then continue to use Label tool.

       
  • William Kendrick

    • status: open --> closed
     

Log in to post a comment.

MongoDB Logo MongoDB