mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-15 14:16:07 -06:00
RichEdit: hyperlink handling fixes
This commit is contained in:
parent
605eb0b239
commit
9c19e3c6fd
2 changed files with 3 additions and 2 deletions
|
|
@ -112,10 +112,10 @@ bool RichEdit::Key(dword key, int count)
|
|||
return true;
|
||||
if(RemoveBullet(false))
|
||||
break;
|
||||
formatinfo.link.Clear();
|
||||
RichText::FormatInfo f = formatinfo;
|
||||
InsertLine();
|
||||
formatinfo = f;
|
||||
formatinfo.link.Clear();
|
||||
ShowFormat();
|
||||
FinishNF();
|
||||
}
|
||||
|
|
|
|||
|
|
@ -430,6 +430,7 @@ void RichEdit::InsertLine()
|
|||
{
|
||||
if(IsReadOnly())
|
||||
return;
|
||||
formatinfo.link.Clear();
|
||||
RichText::FormatInfo b = formatinfo;
|
||||
RichText h;
|
||||
h.SetStyles(text.GetStyles());
|
||||
|
|
@ -459,7 +460,7 @@ void RichEdit::InsertLine()
|
|||
return;
|
||||
}
|
||||
}
|
||||
ApplyFormat(0, RichText::NEWPAGE|RichText::LABEL|RichText::NEWHDRFTR);
|
||||
ApplyFormat(RichText::LINK, RichText::NEWPAGE|RichText::LABEL|RichText::NEWHDRFTR);
|
||||
objectpos = -1;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue