- Partially fix relationship to central topic.

- Fix add icon to the central topic
This commit is contained in:
Paulo Veiga
2011-11-30 00:50:46 -03:00
parent bc87d0f311
commit e520d9baba
4 changed files with 14 additions and 13 deletions

View File

@@ -590,6 +590,7 @@ mindplot.Designer = new Class({
var validateFunc = function(topic) {
return !(topic.getType() == mindplot.model.INodeModel.CENTRAL_TOPIC_TYPE && shape == mindplot.model.INodeModel.SHAPE_TYPE_LINE)
};
var validateError = 'Central Topic shape can not be changed to line figure.';
var topicsIds = this.getModel().filterTopicsIds(validateFunc, validateError);
if (topicsIds.length > 0) {