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

Pasted macro has wrong Indent

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: P4: Low
    • Resolution: Unresolved
    • Affects Version/s: Qt Creator 2.4.0-beta
    • Fix Version/s: None
    • Component/s: Editors
    • Labels:
      None
    • Environment:
      Debian Squeeze, Qt Creator 2.4.0-rc1

      Description

      Pasting macros which contain only parts of a function block, will cause a wrong indent:

      /**
       * Tests the Getter() and Setter() methods
       */
      void CTUPTRouteMTreePlane::StartTestGetter()
      {
      	#define PRE_TEST_EXCEPTION \
      	{ \
      		bool bExceptionWasThrown = false; \
      		Exception::SetOutputEnabled( false ); \
      		try {
      	#define POST_TEST_IS_EXCEPTION \
      		} \
      		catch( IllegalStateException& rException ) \
      		{ \
      			bExceptionWasThrown = true; \
      		} \
      		Exception::SetOutputEnabled( true ); \
      		TEST( bExceptionWasThrown ); \
      	}
      		PRE_TEST_EXCEPTION
      		m_pTestedClassObject->AppendChildNode();
      		POST_TEST_BA_EXCEPTION
      		        
      		        PRE_TEST_EXCEPTION
      				m_pTestedClassObject->AppendChildNode();
      				POST_TEST_BA_EXCEPTION
      

        Attachments

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

          Activity

            People

            • Assignee:
              erikv Erik Verbruggen
              Reporter:
              bluespirit Karl Krach
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:

                Gerrit Reviews

                There are no open Gerrit changes