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

Saving file removes code

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • Not Evaluated
    • None
    • Qt Creator 2.0.1
    • Editors
    • None
    • Windows 7 x64,
      Qt Creator 2.0.1
      Based on Qt 4.7.0 (32 bit)
      Built on Aug 24 2010 at 11:00:55
      From revision 97d831e3de

    Description

      I have a code file written in c which is not part of a project.

      All my functions are collapsed and only the function i'm working on and the function below that are uncollapsed.

      In this file I have a code segment at which I put an if statement around, after which I call ctrl-a, ctrl-i, ctrl-s to re-indent the code and save it. But when I call the ctrl-s some of my other code gets removed as is visible in Error2.png, the left side is the original code and the right side is the code after ctrl-s. I can reproduce this problem on my system

      I had this problem multiple times on the same file at different locations in the code, as you can see in Error.png where the problems are indicated with a blue line under it at other locations in the code file.

      Attachments

        1. Error.png
          40 kB
          Marcel Eeken
        2. Error2.png
          29 kB
          Marcel Eeken

        Issue Links

          Activity

            People

              lindeije Thorbjørn Lindeijer (closed Nokia identity) (Inactive)
              marcel Marcel Eeken
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: