diff --git a/designer-realize/src/com/fr/design/webattr/WriteToolBarPane.java b/designer-realize/src/com/fr/design/webattr/WriteToolBarPane.java index 99bbc8e92a..f08f6e0cf4 100644 --- a/designer-realize/src/com/fr/design/webattr/WriteToolBarPane.java +++ b/designer-realize/src/com/fr/design/webattr/WriteToolBarPane.java @@ -155,7 +155,7 @@ public class WriteToolBarPane extends AbstractEditToolBarPane { webContent = new WebWrite(); } WebWrite webWrite = (WebWrite) webContent; - if (webWrite.getSelectedColor() != null) { + if (webWrite.isEditRowColor()) { colorBox.setSelected(true); colorButton.setColor(webWrite.getSelectedColor()); } else { @@ -205,9 +205,10 @@ public class WriteToolBarPane extends AbstractEditToolBarPane { } if (colorBox.isSelected()) { + webWrite.setEditRowColor(true); webWrite.setSelectedColor(colorButton.getColor()); } else { - webWrite.setSelectedColor(null); + webWrite.setEditRowColor(false); } webWrite.setUnloadCheck(unloadCheck.isSelected()); diff --git a/designer-realize/src/com/fr/design/webattr/WriteWebSettingPane.java b/designer-realize/src/com/fr/design/webattr/WriteWebSettingPane.java index 6d5b068ba5..b23e4c3b25 100644 --- a/designer-realize/src/com/fr/design/webattr/WriteWebSettingPane.java +++ b/designer-realize/src/com/fr/design/webattr/WriteWebSettingPane.java @@ -120,7 +120,7 @@ public class WriteWebSettingPane extends WebSettingPane { if (webWrite == null) { webWrite = new WebWrite(); } - if (webWrite.getSelectedColor() != null) { + if (webWrite.isEditRowColor()) { colorBox.setSelected(true); colorButton.setColor(webWrite.getSelectedColor()); } else { @@ -148,9 +148,10 @@ public class WriteWebSettingPane extends WebSettingPane { protected WebWrite updateSubWebSettingBean() { WebWrite webWrite = new WebWrite(); if (colorBox.isSelected()) { + webWrite.setEditRowColor(true); webWrite.setSelectedColor(colorButton.getColor()); } else { - webWrite.setSelectedColor(null); + webWrite.setEditRowColor(false); } if (topRadioButton.isSelected()) { webWrite.setSheetPosition(Constants.TOP);