https://bz.apache.org/bugzilla/show_bug.cgi?id=58910

--- Comment #3 from Masaki Goto <[email protected]> ---
ColumnHelper#setColumnAttributes is called mainly when a new column is created
by cloning existing columns.
However it does not clone correctly.

public void setColumnAttributes(CTCol fromCol, CTCol toCol) {
    if(fromCol.isSetBestFit()) toCol.setBestFit(fromCol.getBestFit());
    if(fromCol.isSetCustomWidth())
toCol.setCustomWidth(fromCol.getCustomWidth());
    if(fromCol.isSetHidden()) toCol.setHidden(fromCol.getHidden());
    if(fromCol.isSetStyle()) toCol.setStyle(fromCol.getStyle());
    if(fromCol.isSetWidth()) toCol.setWidth(fromCol.getWidth());
    if(fromCol.isSetCollapsed()) toCol.setCollapsed(fromCol.getCollapsed());
    if(fromCol.isSetPhonetic()) toCol.setPhonetic(fromCol.getPhonetic());
    if(fromCol.isSetOutlineLevel())
toCol.setOutlineLevel(fromCol.getOutlineLevel());
    toCol.setCollapsed(fromCol.isSetCollapsed());
}

If fromCol has "collapsed=0" (this means flomCol is not collapsed),
this method set "collapsed=1".

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to