Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-11969

Selection does not work properly with ligatures

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 4.8.0
    • 4.6.3
    • GUI: Text handling
    • None
    • 99fd5825dfb4d50cff93165995701a65b7a8e4ed

    Description

      The selection is drawn incorrectly when selecting a single character in a ligature like fi, ffi, fl in Q[Plain]TextEdit.

      When walking over 'ffi', the cursor itself is positioned properly between 'f' and 'f', and 'f', and 'i', but the selection stays in front of the first 'f' until the cursor is behind the 'i'.

      The following is sufficient to reproduce the problem on Ubuntu:

      #include <QApplication>
      #include <QPlainTextEdit>

      int main(int argc, char *argv[])
      {
      QApplication a(argc, argv);
      QPlainTextEdit p;
      p.show();
      return a.exec();
      }

      The problem is visible in Konqueror, too, but no in, e.g. Nautilus.

      The cursor is positioned correctly, so the information is "somewhere" available.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            jiang Jiang Jiang
            hjk hjk
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes