Skip to content

Commit 339ca0c

Browse files
committed
Fix - reset text attributes when adding line to pave #307
When adding new text line to the TPaveText (like title), reset all attributes. By default attributes of TPaveText has to be used
1 parent 88461aa commit 339ca0c

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

modules/core.mjs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1509,7 +1509,10 @@ function getMethods(typename, obj) {
15091509
m.AddText = function(txt) {
15101510
const line = create(clTLatex);
15111511
line.fTitle = txt;
1512-
line.fTextAlign = this.fTextAlign;
1512+
line.fTextAlign = 0;
1513+
line.fTextColor = 0;
1514+
line.fTextFont = 0;
1515+
line.fTextSize = 0;
15131516
this.fLines.Add(line);
15141517
};
15151518
m.Clear = function() {

0 commit comments

Comments
 (0)