Description

wxOrientation major_axis = m_art->GetFlags() & wxRIBBON_BAR_FLOW_VERTICAL ?
wxVERTICAL : wxHORIZONTAL;
// A toolbar should maximize its width whether vertical or horizontal, so
// force the major axis to be horizontal. Without this, there will be
// redundant horizontal space.
major_axis = wxHORIZONTAL;

This local variable is first initialized by wxVERTICAL or wxHORIZONTAL ( depending on the flag settings ). Then it is initialized again with wxHORIZONTAL. Either there is a logical mistake, or the code can be reduced to: