Fix possible segmentation fault in editNoteLengthAction
fix indentations in some pattern editor files