Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#43 Bug Wen Select multiple line

SVN
closed-fixed
Crash (8)
5
2009-02-16
2009-01-11
No

When i select multiple line in a text, and change this text with a cursor, qcodeedit crash.

To see the problem i have change the qcodeedit exemple (see diff).

If you select one line and click on test, it's work
If you select multiple line and click on test, it's crash

Discussion

  • Diff on exemple

     
    Attachments
  • fullmetalcoder
    fullmetalcoder
    2009-01-17

    • assigned_to: nobody --> fullmetalcoder
    • status: open --> open-fixed
     
  • fullmetalcoder
    fullmetalcoder
    2009-01-17

    The crash happened in the drawing code : no bounds checking was done on selection ranges and the cursor, whose selection had become invalid, had not been updated.

    The bug is fixed but I would recommend that you set back the edit cursor (at least after clearing its selection) or some strange things might happen.

     
  • fullmetalcoder
    fullmetalcoder
    2009-02-16

    • status: open-fixed --> closed-fixed