/*
- * Copyright 1999-2005 The Apache Software Foundation.
+ * Copyright 1999-2006 The Apache Software Foundation.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
return IBorderAttributes.BORDER_DOTTED;
} else if (iBorderStyle == Constants.EN_DASHED) {
return IBorderAttributes.BORDER_DASH;
+ } else if (iBorderStyle == Constants.EN_GROOVE) {
+ return IBorderAttributes.BORDER_ENGRAVE;
+ } else if (iBorderStyle == Constants.EN_RIDGE) {
+ return IBorderAttributes.BORDER_EMBOSS;
+ } else if (iBorderStyle == Constants.EN_INSET) {
+ return IBorderAttributes.BORDER_ENGRAVE;
+ } else if (iBorderStyle == Constants.EN_OUTSET) {
+ return IBorderAttributes.BORDER_EMBOSS;
/* } else if (iBorderStyle==Constants value.equals("hairline")) {
return IBorderAttributes.BORDER_HAIRLINE;*/
/* } else if (iBorderStyle==Constant value.equals("dot-dash")) {
} else if (iBorderStyle==Constant value.equals("engrave")) {
return IBorderAttributes.BORDER_ENGRAVE;*/
} else {
- return null;
+ return IBorderAttributes.BORDER_SINGLE_THICKNESS;
}
}
<changes>
<release version="FOP Trunk">
+ <action context="Code" dev="JM" type="fix" fixes-bug="38132">
+ Bugfix: Certain border styles could lead to a NullPointerException.
+ </action>
<action context="Code" dev="JM" type="fix" fixes-bug="38102">
Bugfix: Space was not adjusted if the space was on a nested block. This could
lead to content overflowing the bottom of a page.