Skip to content

Commit

Permalink
Fix the display of diagonals if the style is unset (#1872) (#1873)
Browse files Browse the repository at this point in the history
  • Loading branch information
speckyspooky authored Aug 22, 2024
1 parent cad5146 commit 154104d
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@
import org.eclipse.birt.report.engine.content.IReportContent;
import org.eclipse.birt.report.engine.content.IStyle;
import org.eclipse.birt.report.engine.content.ITableContent;
import org.eclipse.birt.report.engine.css.engine.value.css.CSSConstants;
import org.eclipse.birt.report.engine.emitter.EmitterUtil;
import org.eclipse.birt.report.engine.emitter.excel.BookmarkDef;
import org.eclipse.birt.report.engine.emitter.excel.Data;
Expand Down Expand Up @@ -377,7 +378,7 @@ public void addCell(ICellContent cellcontent, int col, int colSpan, int rowSpan,
}
int diagonalNumber = cellcontent.getDiagonalNumber();
StyleEntry cellStyleEntry = null;
if (diagonalNumber != 0) {
if (diagonalNumber != 0 && !style.getDiagonalStyle().equalsIgnoreCase(CSSConstants.CSS_NONE_VALUE)) {
String diagonalColor = cellcontent.getDiagonalColor();
String diagonalStyle = cellcontent.getDiagonalStyle();
int diagonalWidth = PropertyUtil.getDimensionValue(cellcontent, cellcontent.getDiagonalWidth(),
Expand Down

0 comments on commit 154104d

Please sign in to comment.