Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
e568e151
Commit
e568e151
authored
Aug 07, 2008
by
Dylan Smith
Committed by
Alexandre Julliard
Aug 18, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
richedit: Removed assumption about the order of rtf indent control words.
Previously the calculations of dxStartIdent and dxOffset depended on their order.
parent
2cd62080
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
4 deletions
+2
-4
editor.c
dlls/riched20/editor.c
+2
-4
No files found.
dlls/riched20/editor.c
View file @
e568e151
...
...
@@ -473,15 +473,13 @@ static void ME_RTFParAttrHook(RTF_Info *info)
case
rtfFirstIndent
:
ME_GetSelectionParaFormat
(
info
->
editor
,
&
fmt
);
fmt
.
dwMask
=
PFM_STARTINDENT
|
PFM_OFFSET
;
fmt
.
dxStartIndent
+=
info
->
rtfParam
;
fmt
.
dxStartIndent
+=
fmt
.
dxOffset
+
info
->
rtfParam
;
fmt
.
dxOffset
=
-
info
->
rtfParam
;
break
;
case
rtfLeftIndent
:
/* we assume rtfLeftIndent is always specified before rtfFirstIndent */
ME_GetSelectionParaFormat
(
info
->
editor
,
&
fmt
);
fmt
.
dwMask
=
PFM_STARTINDENT
;
fmt
.
dxStartIndent
=
info
->
rtfParam
;
fmt
.
dxOffset
=
0
;
fmt
.
dxStartIndent
=
info
->
rtfParam
-
fmt
.
dxOffset
;
break
;
case
rtfRightIndent
:
fmt
.
dwMask
=
PFM_RIGHTINDENT
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment