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 258409

Summary: Ctrl+Alt+F does wrong alignment
Product: editor Reporter: ale4349koc <ale4349koc>
Component: Formatting & IndentationAssignee: Dusan Balek <dbalek>
Status: NEW ---    
Severity: normal    
Priority: P3    
Version: 8.1   
Hardware: PC   
OS: Windows 7   
Issue Type: DEFECT Exception Reporter:

Description ale4349koc 2016-03-17 01:45:35 UTC
The problem exists in NB 8.1 only. There is an example
Before Сtrl+Alt+F
// -------------------------------------------
if (DD != 0) {
    rez = Integer.toString(DD);
} else {
    if (HH != 0) {
        rez = Integer.toString(HH);
    } else {
        rez = Integer.toString(MM);
    }
}
// -------------------------------------------
After Сtrl+Alt+F
// -------------------------------------------
if (DD != 0) {
    rez = Integer.toString(DD);
} else if (HH != 0) {
    rez = Integer.toString(HH);
} else {
    rez = Integer.toString(MM);
}
// -------------------------------------------