mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-06-11 14:22:58 -06:00
RichEdit: Fixed paragraph format modified flag
git-svn-id: svn://ultimatepp.org/upp/trunk@14388 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
4cb3d29938
commit
ca3c3be589
2 changed files with 3 additions and 3 deletions
|
|
@ -389,7 +389,7 @@ void StyleManager::SaveStyle()
|
|||
if(list.IsCursor()) {
|
||||
Uuid id = list.GetKey();
|
||||
RichStyle& s = style.Get(list.GetKey());
|
||||
if(Ctrl::IsModified() || para.IsChanged()) {
|
||||
if(Ctrl::IsModifiedDeep() || para.IsChanged()) {
|
||||
dirty.FindAdd(id);
|
||||
RichText::FormatInfo f;
|
||||
para.Get(f);
|
||||
|
|
@ -479,7 +479,7 @@ void StyleManager::Set(const char *qtf)
|
|||
|
||||
bool StyleManager::IsChanged() const
|
||||
{
|
||||
return dirty.GetCount() || IsModified();
|
||||
return dirty.GetCount() || IsModifiedDeep();
|
||||
}
|
||||
|
||||
void StyleManager::Get(RichText& text)
|
||||
|
|
|
|||
|
|
@ -149,7 +149,7 @@ public:
|
|||
void Set(int unit, const RichText::FormatInfo& formatinfo, bool baselevel = false);
|
||||
dword Get(RichText::FormatInfo& formatinfo);
|
||||
void SetFont(Font fnt) { font = fnt; }
|
||||
bool IsChanged() const { return IsModified() || modified; }
|
||||
bool IsChanged() const { return IsModifiedDeep() || modified; }
|
||||
void EnableNumbering();
|
||||
void SetupIndent();
|
||||
void EditHdrFtr();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue