https://issues.apache.org/bugzilla/show_bug.cgi?id=40414


Josh Micich <[EMAIL PROTECTED]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED




--- Comment #1 from Josh Micich <[EMAIL PROTECTED]>  2008-05-16 12:21:55 PST ---
Fixed in svn r657167 as a follow-on to bug 44523.

The suggested logic was applied within HSSFWorkbook.removeSheetAt(), to update
both the active sheet index and selected sheet flags if the removed sheet was
active or selected.

It seems that setting of the 'selected' sheet flags is the only thing important
for this bug.  In Excel (2007) in the print dialog, the section 'Print what'
has radio buttons with values 'Selection' and 'Active sheet(s)', suggesting
that the 'active' sheet is used when that radio button is set.  From what I
could tell, regardless of the value of the radio button, only the 'selected'
sheet flags were taken into account.  

I left the fix to include the update of 'active' sheet because it seemed wrong
to let the workbook have no active sheet, and it does no harm for this bug or
any other existing test case.  Perhaps the observed behaviour related to
printing is just a bug in Excel 2007.


-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- 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