Skip to content

Commit

Permalink
Fix - reset text attributes when adding line to pave #307
Browse files Browse the repository at this point in the history
When adding new text line to the TPaveText (like title),
reset all attributes. By default attributes of TPaveText has to be used
  • Loading branch information
linev committed May 7, 2024
1 parent 88461aa commit 339ca0c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion modules/core.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -1509,7 +1509,10 @@ function getMethods(typename, obj) {
m.AddText = function(txt) {
const line = create(clTLatex);
line.fTitle = txt;
line.fTextAlign = this.fTextAlign;
line.fTextAlign = 0;
line.fTextColor = 0;
line.fTextFont = 0;
line.fTextSize = 0;
this.fLines.Add(line);
};
m.Clear = function() {
Expand Down

0 comments on commit 339ca0c

Please sign in to comment.