Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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-winehq
Commits
ab6ca014
Commit
ab6ca014
authored
Aug 28, 2008
by
Dylan Smith
Committed by
Alexandre Julliard
Aug 29, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
richedit: Fixed a bug in protecting table cell boundaries.
parent
238fd58a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
22 deletions
+8
-22
table.c
dlls/riched20/table.c
+8
-22
No files found.
dlls/riched20/table.c
View file @
ab6ca014
...
...
@@ -345,7 +345,7 @@ void ME_ProtectPartialTableDeletion(ME_TextEditor *editor, int nOfs,int *nChars)
ME_DisplayItem
*
pRun
;
int
nCharsToBoundary
;
if
(
this_para
->
member
.
para
.
nCharOfs
!=
nOfs
&&
if
(
(
this_para
->
member
.
para
.
nCharOfs
!=
nOfs
||
this_para
==
end_para
)
&&
this_para
->
member
.
para
.
pFmt
->
dwMask
&
PFM_TABLE
&&
this_para
->
member
.
para
.
pFmt
->
wEffects
&
PFE_TABLE
)
{
...
...
@@ -360,27 +360,13 @@ void ME_ProtectPartialTableDeletion(ME_TextEditor *editor, int nOfs,int *nChars)
}
else
if
(
end_para
->
member
.
para
.
pFmt
->
dwMask
&
PFM_TABLE
&&
end_para
->
member
.
para
.
pFmt
->
wEffects
&
PFE_TABLE
)
{
if
(
this_para
==
end_para
)
{
pRun
=
c2
.
pRun
;
/* Find the previous tab or end paragraph to use as a delete boundary */
while
(
pRun
&&
!
(
pRun
->
member
.
run
.
nFlags
&
(
MERF_TAB
|
MERF_ENDPARA
)))
pRun
=
ME_FindItemBack
(
pRun
,
diRun
);
if
(
pRun
&&
pRun
->
member
.
run
.
nFlags
&
MERF_ENDPARA
)
{
/* We are in the first cell, and have gone back to the previous
* paragraph, so nothing needs to be protected. */
pRun
=
NULL
;
}
}
else
{
/* The deletion starts from before the row, so don't join it with
* previous non-empty paragraphs. */
pRun
=
NULL
;
if
(
nOfs
>
this_para
->
member
.
para
.
nCharOfs
)
pRun
=
ME_FindItemBack
(
end_para
,
diRun
);
if
(
!
pRun
)
pRun
=
ME_FindItemFwd
(
end_para
,
diRun
);
}
/* The deletion starts from before the row, so don't join it with
* previous non-empty paragraphs. */
pRun
=
NULL
;
if
(
nOfs
>
this_para
->
member
.
para
.
nCharOfs
)
pRun
=
ME_FindItemBack
(
end_para
,
diRun
);
if
(
!
pRun
)
pRun
=
ME_FindItemFwd
(
end_para
,
diRun
);
if
(
pRun
)
{
nCharsToBoundary
=
ME_GetParagraph
(
pRun
)
->
member
.
para
.
nCharOfs
...
...
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