Skip to content

Commit

Permalink
Emit XML stylebits changed in child
Browse files Browse the repository at this point in the history
  • Loading branch information
tobiolo committed Sep 8, 2023
1 parent 1abd139 commit 965eb22
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cell.h
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ struct Cell {
str.Prepend(wxString() << -text.relsize);
str.Prepend(L" relsize=\"");
}
if (text.stylebits) {
if (parent ? text.stylebits ^ parent->text.stylebits : text.stylebits) {
str.Prepend(L"\"");
str.Prepend(wxString() << text.stylebits);
str.Prepend(L" stylebits=\"");
Expand Down

0 comments on commit 965eb22

Please sign in to comment.