mirror of https://github.com/apache/poi.git
try to fix HSSF tests
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1902635 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
69036c64ea
commit
5386fe171d
|
@ -545,25 +545,24 @@ public final class CellUtil {
|
||||||
style.setDataFormat(getShort(properties, DATA_FORMAT));
|
style.setDataFormat(getShort(properties, DATA_FORMAT));
|
||||||
style.setFillPattern(getFillPattern(properties, FILL_PATTERN));
|
style.setFillPattern(getFillPattern(properties, FILL_PATTERN));
|
||||||
|
|
||||||
|
style.setFillForegroundColor(getShort(properties, FILL_FOREGROUND_COLOR));
|
||||||
|
style.setFillBackgroundColor(getShort(properties, FILL_BACKGROUND_COLOR));
|
||||||
|
|
||||||
Color foregroundFillColor = getColor(properties, FILL_FOREGROUND_COLOR_COLOR);
|
Color foregroundFillColor = getColor(properties, FILL_FOREGROUND_COLOR_COLOR);
|
||||||
Color backgroundFillColor = getColor(properties, FILL_BACKGROUND_COLOR_COLOR);
|
Color backgroundFillColor = getColor(properties, FILL_BACKGROUND_COLOR_COLOR);
|
||||||
if (foregroundFillColor != null) {
|
if (foregroundFillColor != null) {
|
||||||
try {
|
try {
|
||||||
style.setFillForegroundColor(foregroundFillColor);
|
style.setFillForegroundColor(foregroundFillColor);
|
||||||
} catch (IllegalArgumentException iae) {
|
} catch (IllegalArgumentException iae) {
|
||||||
style.setFillForegroundColor(getShort(properties, FILL_FOREGROUND_COLOR));
|
LOGGER.atDebug().log("Mismatched FillForegroundColor instance used", iae);
|
||||||
}
|
}
|
||||||
} else {
|
|
||||||
style.setFillForegroundColor(getShort(properties, FILL_FOREGROUND_COLOR));
|
|
||||||
}
|
}
|
||||||
if (backgroundFillColor != null) {
|
if (backgroundFillColor != null) {
|
||||||
try {
|
try {
|
||||||
style.setFillBackgroundColor(backgroundFillColor);
|
style.setFillBackgroundColor(backgroundFillColor);
|
||||||
} catch (IllegalArgumentException iae) {
|
} catch (IllegalArgumentException iae) {
|
||||||
style.setFillBackgroundColor(getShort(properties, FILL_BACKGROUND_COLOR));
|
LOGGER.atDebug().log("Mismatched FillBackgroundColor instance used", iae);
|
||||||
}
|
}
|
||||||
} else {
|
|
||||||
style.setFillBackgroundColor(getShort(properties, FILL_BACKGROUND_COLOR));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
style.setFont(workbook.getFontAt(getInt(properties, FONT)));
|
style.setFont(workbook.getFontAt(getInt(properties, FONT)));
|
||||||
|
|
Loading…
Reference in New Issue