This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 262235

Summary: Mouse click breaks automatic indentations in Macro Expansion View
Product: cnd Reporter: soldatov <soldatov>
Component: -- Other --Assignee: danilasergeyev
Status: RESOLVED FIXED    
Severity: normal    
Priority: P3    
Version: 8.1   
Hardware: PC   
OS: Solaris   
Issue Type: DEFECT Exception Reporter:

Description soldatov 2016-05-26 10:18:16 UTC
NetBeans 8.1 and Oracle Solaris Studio

C++ code:
==========================================
#define AA(x) if ((x)) {\
i = 2;\
}

int main() {
    int i = 1;
    AA(true);
    return 0;
}
==========================================

Scenario:
- Call context menu in editor and select Navigate|View Macro Expansion
- Check "Macro Expansion" view
==>
..........
    if (( true )) {
        i = 2;
    };
.........
- Click to editor
==>
.........
    if (( true )) {
   i = 2;
};
.........
Comment 1 danilasergeyev 2016-07-21 11:33:40 UTC
fixed in change set:
http://hg.netbeans.org/cnd-main/rev/16a221035a67