You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@openoffice.apache.org by bu...@apache.org on 2012/09/05 07:50:49 UTC
[Bug 120816] New: Method clearContents() clears 'Formatted' contents
of the cells used does not work, If constants of com.sun.star.sheet.CellFlags
is '512'.
https://issues.apache.org/ooo/show_bug.cgi?id=120816
Priority: P3
Bug ID: 120816
Assignee: ooo-issues@incubator.apache.org
Summary: Method clearContents() clears 'Formatted' contents of
the cells used does not work, If constants of
com.sun.star.sheet.CellFlags is '512'.
Severity: normal
Issue Type: DEFECT
Classification: Code
OS: All
Reporter: binbjguo@gmail.com
Hardware: All
Status: CONFIRMED
Version: AOO 3.4.1
Component: code
Product: api
Steps:
1. Input text into Cell B6.
2. Set the Bold of text is ON.
3. Execute the following code sentence:
-------------------------------
// Get cell range B5:C15 by position - (column, row, column, row)
XCellRange xCellRange = xSheet.getCellRangeByPosition( 1, 4, 2, 14 );
XSheetOperation xSheetOp = (XSheetOperation)
UnoRuntime.queryInterface(XSheetOperation.class, xCellRange);
//Delete Text from Cell Range B5:C15
xSheetOp.clearContents(512);
--------------------------
Defect:
Contents with formatted are not deleted.
--
You are receiving this mail because:
You are the assignee for the bug.