mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-09-05 17:44:55 -06:00
RichText: Header/Footer can be changed by paragraph/table
git-svn-id: svn://ultimatepp.org/upp/trunk@10084 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
d65073ef29
commit
4b1727cab9
25 changed files with 506 additions and 356 deletions
|
|
@ -436,13 +436,13 @@ void RichEdit::InsertLine()
|
|||
}
|
||||
anchor = cursor = cursor + 1;
|
||||
begtabsel = false;
|
||||
formatinfo.newpage = false;
|
||||
formatinfo.newpage = formatinfo.newhdrftr = false;
|
||||
if(st) {
|
||||
Uuid next = text.GetStyle(b.styleid).next;
|
||||
if(next != formatinfo.styleid) {
|
||||
formatinfo.label.Clear();
|
||||
formatinfo.styleid = next;
|
||||
ApplyFormat(0, RichText::STYLE|RichText::NEWPAGE|RichText::LABEL);
|
||||
ApplyFormat(0, RichText::STYLE|RichText::NEWPAGE|RichText::LABEL|RichText::NEWHDRFTR);
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue