Commit 9a4fdf2f authored by techird's avatar techird

修复历史不能回退字体颜色的问题

parent 7a2129b9
......@@ -12,11 +12,9 @@ KityMinder.registerModule("fontmodule", function() {
var fontFamily = getNodeDataOrStyle(node, 'font-family');
var fontSize = getNodeDataOrStyle(node, 'font-size');
var fontHash = [fontFamily, fontSize].join('/');
if (foreColor.toString() != node.getTmpData('fore-color')) {
textGroup.fill(foreColor);
node.setTmpData('fore-color', foreColor.toString());
}
textGroup.fill(foreColor);
node.setTmpData('fore-color', foreColor.toString());
textGroup.eachItem(function(index,item){
item.setFont({
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment