Uploaded image for project: 'Keikai'
  1. Keikai
  2. KEIKAI-746

failed to export a row height under protection with "format rows" allowed

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Normal Normal
    • 6.1.0
    • 5.9.0, 5.12.2
    • None
    • None

      Steps to Reproduce

      1. import keikai-746.xlsx
      2. enlarge the 1st row height
      3. export it
      4. check the exported file in Excel

      Current Result

      the 1st row height doesn't change

      Expected Result

      the 1st row height changed

      Root Cause

      • keikai blocks the action without checking allowed actions:
        	public void setRowSize(String sheetId, int row, int newsize, int id, boolean hidden, boolean isCustom) {
        		...
        
        		Sheet sheet = new SheetImpl(new SimpleRef<SBook>(xsheet.getBook()),new SimpleRef<SSheet>(xsheet));
        		if(sheet.isProtected()){
        			return;
        		}
        

      Workaround

      		if(sheet.isProtected()
      			&& !xsheet.getSheetProtection().isFormatRows()){
      			return;
      		}
      

            Unassigned Unassigned
            hawk hawk
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: