Commit cb4a41b8 authored by Eric Pouech's avatar Eric Pouech Committed by Alexandre Julliard

richedit: Fix reading paragraph left & first indentation attributes.

parent f628a1c2
...@@ -471,14 +471,16 @@ static void ME_RTFParAttrHook(RTF_Info *info) ...@@ -471,14 +471,16 @@ static void ME_RTFParAttrHook(RTF_Info *info)
} }
case rtfFirstIndent: case rtfFirstIndent:
ME_GetSelectionParaFormat(info->editor, &fmt); ME_GetSelectionParaFormat(info->editor, &fmt);
fmt.dwMask = PFM_STARTINDENT | PFM_OFFSET; fmt.dwMask |= PFM_STARTINDENT | PFM_OFFSET;
fmt.dxStartIndent += info->rtfParam + fmt.dxOffset; fmt.dxStartIndent += info->rtfParam;
fmt.dxOffset = -info->rtfParam; fmt.dxOffset = -info->rtfParam;
break; break;
case rtfLeftIndent: case rtfLeftIndent:
/* we assume rtfLeftIndent is always specified before rtfFirstIndent */
ME_GetSelectionParaFormat(info->editor, &fmt); ME_GetSelectionParaFormat(info->editor, &fmt);
fmt.dwMask = PFM_STARTINDENT; fmt.dwMask |= PFM_STARTINDENT;
fmt.dxStartIndent = -fmt.dxOffset + info->rtfParam; fmt.dxStartIndent = info->rtfParam;
fmt.dxOffset = 0;
break; break;
case rtfRightIndent: case rtfRightIndent:
fmt.dwMask = PFM_RIGHTINDENT; fmt.dwMask = PFM_RIGHTINDENT;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment