Bug WA-57 fixed. #resolve

This commit is contained in:
Paulo Gustavo Veiga 2015-04-11 19:41:45 -03:00
parent 2914f5b256
commit 2f26b19250

View File

@ -160,13 +160,13 @@ mindplot.Designer = new Class(/** @lends Designer */{
var model = me._createChildModel(centralTopic, mousePos); var model = me._createChildModel(centralTopic, mousePos);
this._actionDispatcher.addTopics([model], [centralTopic.getId()]); this._actionDispatcher.addTopics([model], [centralTopic.getId()]);
} }
}); }.bind(this));
// Register mouse drag and drop event ... // Register mouse drag and drop event ...
function noopHandler(evt) { function noopHandler(evt) {
evt.stopPropagation(); evt.stopPropagation();
evt.preventDefault(); evt.preventDefault();
}; }
}, },
/** /**
@ -476,8 +476,7 @@ mindplot.Designer = new Class(/** @lends Designer */{
_copyNodeProps: function (sourceModel, targetModel) { _copyNodeProps: function (sourceModel, targetModel) {
// I don't copy the font size if the target is the source is the central topic. // I don't copy the font size if the target is the source is the central topic.
if(sourceModel.getType() != mindplot.model.INodeModel.CENTRAL_TOPIC_TYPE) if (sourceModel.getType() != mindplot.model.INodeModel.CENTRAL_TOPIC_TYPE) {
{
var fontSize = sourceModel.getFontSize(); var fontSize = sourceModel.getFontSize();
if (fontSize) { if (fontSize) {
targetModel.setFontSize(fontSize) targetModel.setFontSize(fontSize)