Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-18068

Word wrap bugs if same document in two vert splits

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • Not Evaluated
    • None
    • Qt Creator 4.2.1, Qt Creator 4.4.0, Qt Creator 4.6.1
    • Editors
    • None
    • W7 x64 SP1

    Description

      With word wrap enabled, Qt Creator does not wrap words correctly when vertical splitting is enabled and shows horizontal scrollbar. This happens with CPP files but does NOT happen with plaintext files, even if contents are exactly same. Wrapping without vertical splitting looks fine.

      Steps to reproduce:
      1) Open/create .cpp any file
      2) Split vertically
      3) Paste the following code (or any code, I suppose)
      4) Move splitter.
      Result: horyzontal scrollbar appears and words are hidden.
      Expected result: all text should be available without hor. scroll.

      Specific code to test with:

      					//some 16 bytes per string. Storing chars and swatches separately and using bitfields could save alignment overhead.
      					node(biY i_cont, Y i_csi, biBool i_cs, char i_ref, node::state i_st) : cont{i_cont}, comp_start_index{i_csi}, cont_string{i_cs}, ref{i_ref}, State{i_st} {}

      It looks like this bug happens when same document is in both panes!

      Attachments

        1. 22,04,17(12-28-47).png
          16 kB
          P B
        2. 22,04,17(12-31-40).png
          27 kB
          P B
        3. 22,04,17(12-33-58).png
          66 kB
          P B
        4. wrap bug.png
          14 kB
          P B

        Issue Links

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

          Activity

            People

              davschul David Schulz
              none P B
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes