-
Notifications
You must be signed in to change notification settings - Fork 0
/
Chart13.txt
21 lines (21 loc) · 1.06 KB
/
Chart13.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
--- original/org/jfree/chart/block/BorderArrangement.java
+++ fixed/org/jfree/chart/block/BorderArrangement.java
@@ -452 +452 @@ public class BorderArrangement implements Arrangement, Serializable {
h[3] = h[2];
- if (this.rightBlock != null) {
- RectangleConstraint c4 = new RectangleConstraint(0.0,
- new Range(0.0, constraint.getWidth() - w[2]),
- LengthConstraintType.RANGE, h[2], null,
- LengthConstraintType.FIXED);
- Size2D size = this.rightBlock.arrange(g2, c4);
- w[3] = size.width;
+ if (this.equals((java.lang.Object) container)) {
+ if (this.rightBlock != null) {
+ RectangleConstraint c4 = new RectangleConstraint(0.0,
+ new Range(0.0, constraint.getWidth() - w[2]),
+ LengthConstraintType.RANGE, h[2], null,
+ LengthConstraintType.FIXED);
+ Size2D size = this.rightBlock.arrange(g2, c4);
+ w[3] = size.width;
+ }
}