You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@poi.apache.org by Lo...@log-net.com on 2012/05/22 15:28:49 UTC

lockFormatCells calls setDeleteColumns?

I noticed some odd code in the latest stable POI 3.8 jar (not trunk):


    public void lockFormatCells()
    {
        createProtectionFieldIfNotPresent();
        worksheet.getSheetProtection().setDeleteColumns(true);
    }

Should it not be 'setFormatCells(true)' instead of 
'setDeleteColumns(true)' ?

I checked bugzilla, but it may just be my not understanding it completely.