Fix Bug 50014

This commit is contained in:
Julia Radzhabova 2021-04-26 17:05:45 +03:00
parent 1d1db2e7b1
commit 386d55d785
7 changed files with 70 additions and 56 deletions

View file

@ -607,14 +607,16 @@ define([
expr = new RegExp('^\\s*(\\d*(\\.|,)?\\d+)\\s*(' + me.txtPt + ')?\\s*$');
if (!(expr.exec(record.value)) || value<0 || value>1584) {
this._state.StrokeType = this._state.StrokeWidth = -1;
Common.UI.error({
msg: this.textBorderSizeErr,
callback: function() {
_.defer(function(btn) {
me.fireEvent('editcomplete', me);
})
}
});
setTimeout( function() {
Common.UI.error({
msg: me.textBorderSizeErr,
callback: function() {
_.defer(function(btn) {
me.fireEvent('editcomplete', me);
})
}
});
}, 10);
}
} else
this.applyBorderSize(record.value);

View file

@ -477,14 +477,16 @@ define([
expr = new RegExp('^\\s*(\\d*(\\.|,)?\\d+)\\s*(' + me.txtPt + ')?\\s*$');
if (!(expr.exec(record.value)) || value<0 || value>1584) {
this._state.StrokeType = this._state.StrokeWidth = -1;
Common.UI.error({
msg: this.textBorderSizeErr,
callback: function() {
_.defer(function(btn) {
me.fireEvent('editcomplete', me);
})
}
});
setTimeout( function() {
Common.UI.error({
msg: me.textBorderSizeErr,
callback: function() {
_.defer(function(btn) {
me.fireEvent('editcomplete', me);
})
}
});
}, 10);
}
} else
this.applyBorderSize(record.value);

View file

@ -587,14 +587,16 @@ define([
expr = new RegExp('^\\s*(\\d*(\\.|,)?\\d+)\\s*(' + me.txtPt + ')?\\s*$');
if (!(expr.exec(record.value)) || value<0 || value>1584) {
this._state.StrokeType = this._state.StrokeWidth = -1;
Common.UI.error({
msg: this.textBorderSizeErr,
callback: function() {
_.defer(function(btn) {
me.fireEvent('editcomplete', me);
})
}
});
setTimeout( function() {
Common.UI.error({
msg: me.textBorderSizeErr,
callback: function() {
_.defer(function(btn) {
me.fireEvent('editcomplete', me);
})
}
});
}, 10);
}
} else
this.applyBorderSize(record.value);

View file

@ -596,14 +596,16 @@ define([
expr = new RegExp('^\\s*(\\d*(\\.|,)?\\d+)\\s*(' + me.txtPt + ')?\\s*$');
if (!(expr.exec(record.value)) || value<0 || value>1584) {
this._state.StrokeType = this._state.StrokeWidth = -1;
Common.UI.error({
msg: this.textBorderSizeErr,
callback: function() {
_.defer(function(btn) {
me.fireEvent('editcomplete', me);
})
}
});
setTimeout( function() {
Common.UI.error({
msg: me.textBorderSizeErr,
callback: function() {
_.defer(function(btn) {
me.fireEvent('editcomplete', me);
})
}
});
}, 10);
}
} else
this.applyBorderSize(record.value);

View file

@ -1123,14 +1123,16 @@ define([
expr = new RegExp('^\\s*(\\d*(\\.|,)?\\d+)\\s*(' + me.txtPt + ')?\\s*$');
if (!(expr.exec(record.value)) || value<0.01 || value>1584) {
this._state.LineWeight = -1;
Common.UI.error({
msg: this.textBorderSizeErr,
callback: function() {
_.defer(function(btn) {
Common.NotificationCenter.trigger('edit:complete', me);
})
}
});
setTimeout( function() {
Common.UI.error({
msg: me.textBorderSizeErr,
callback: function() {
_.defer(function(btn) {
Common.NotificationCenter.trigger('edit:complete', me);
})
}
});
}, 10);
}
} else
this.applyBorderSize(record.value);

View file

@ -604,14 +604,16 @@ define([
expr = new RegExp('^\\s*(\\d*(\\.|,)?\\d+)\\s*(' + me.txtPt + ')?\\s*$');
if (!(expr.exec(record.value)) || value<0 || value>1584) {
this._state.StrokeType = this._state.StrokeWidth = -1;
Common.UI.error({
msg: this.textBorderSizeErr,
callback: function() {
_.defer(function(btn) {
Common.NotificationCenter.trigger('edit:complete', me);
})
}
});
setTimeout( function() {
Common.UI.error({
msg: me.textBorderSizeErr,
callback: function() {
_.defer(function(btn) {
Common.NotificationCenter.trigger('edit:complete', me);
})
}
});
}, 10);
}
} else
this.applyBorderSize(record.value);

View file

@ -597,14 +597,16 @@ define([
expr = new RegExp('^\\s*(\\d*(\\.|,)?\\d+)\\s*(' + me.txtPt + ')?\\s*$');
if (!(expr.exec(record.value)) || value<0 || value>1584) {
this._state.StrokeType = this._state.StrokeWidth = -1;
Common.UI.error({
msg: this.textBorderSizeErr,
callback: function() {
_.defer(function(btn) {
Common.NotificationCenter.trigger('edit:complete', me);
})
}
});
setTimeout( function() {
Common.UI.error({
msg: me.textBorderSizeErr,
callback: function() {
_.defer(function(btn) {
Common.NotificationCenter.trigger('edit:complete', me);
})
}
});
}, 10);
}
} else
this.applyBorderSize(record.value);