You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-dev@xmlgraphics.apache.org by Scott Finnerty <sc...@altec.org> on 2001/04/14 08:07:41 UTC
TableRow.java and keep-with-*
I was having a problem with using keep-with-next and keep-with-previous in
fo:table-row's and figured this out - the switch statement operates on the
enum value instead of the label. The most direct solution seemed to be to
use the Constants.* labels...
Here is the diff with org/apache/fo/flow/TableRow.java revision 1.38:
--- begin diff ---
*** TableRow.java.orig Sat Apr 14 00:10:27 2001
--- TableRow.java Fri Apr 13 23:10:45 2001
***************
*** 265,274 ****
if (n != null)
return new
KeepValue(KeepValue.KEEP_WITH_VALUE, n.intValue());
switch(p.getEnum()) {
! case 2:
return new
KeepValue(KeepValue.KEEP_WITH_ALWAYS, 0);
//break;
! case 1:
default:
return new
KeepValue(KeepValue.KEEP_WITH_AUTO, 0);
//break;
--- 265,274 ----
if (n != null)
return new
KeepValue(KeepValue.KEEP_WITH_VALUE, n.intValue());
switch(p.getEnum()) {
! case Constants.ALWAYS:
return new
KeepValue(KeepValue.KEEP_WITH_ALWAYS, 0);
//break;
! case Constants.AUTO:
default:
return new
KeepValue(KeepValue.KEEP_WITH_AUTO, 0);
//break;
--- end diff ---
Scott Finnerty
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-dev-unsubscribe@xml.apache.org
For additional commands, email: fop-dev-help@xml.apache.org