Browse Source

REPORT-3983 [9.0一轮回归]选中一片单元格,样式边框外边框、内边框显示异常

master
MoMeak 7 years ago
parent
commit
8d61a5ef3d
  1. 4
      designer/src/com/fr/design/mainframe/cell/settingpane/style/CustomStylePane.java
  2. 3
      designer_base/src/com/fr/design/gui/style/BorderPane.java

4
designer/src/com/fr/design/mainframe/cell/settingpane/style/CustomStylePane.java

@ -111,7 +111,7 @@ public class CustomStylePane extends MultiTabPane<Style> {
public boolean isBorderPaneSelected() {
return tabPane.getSelectedIndex() == TWO_INDEX;
return tabPane.getSelectedIndex() == ONE_INDEX;
}
/**
@ -137,7 +137,7 @@ public class CustomStylePane extends MultiTabPane<Style> {
*
*/
public void updateBorder() {
BorderUtils.update(reportPane, ((BorderPane) paneList.get(TWO_INDEX)).update());
BorderUtils.update(reportPane, ((BorderPane) paneList.get(ONE_INDEX)).update());
}
/**

3
designer_base/src/com/fr/design/gui/style/BorderPane.java

@ -184,7 +184,7 @@ public class BorderPane extends AbstractBasicStylePane {
}
public Style update(Style style) {
style = style.deriveBackground(backgroundPane.update());
if (style == null) {
style = Style.DEFAULT_STYLE;
}
@ -193,6 +193,7 @@ public class BorderPane extends AbstractBasicStylePane {
style = style.deriveBorder(cellBorderStyle.getTopStyle(), cellBorderStyle.getTopColor(), cellBorderStyle.getBottomStyle(), cellBorderStyle.getBottomColor(),
cellBorderStyle.getLeftStyle(), cellBorderStyle.getLeftColor(), cellBorderStyle.getRightStyle(), cellBorderStyle.getRightColor());
style = style.deriveBackground(backgroundPane.update());
return style;
}

Loading…
Cancel
Save