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
512d0924
Commit
512d0924
authored
Oct 12, 2007
by
Jacek Caban
Committed by
Alexandre Julliard
Oct 15, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Fix range pos after put_text call.
parent
b0efe7f8
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
1 deletion
+8
-1
dom.c
dlls/mshtml/tests/dom.c
+3
-0
txtrange.c
dlls/mshtml/txtrange.c
+5
-1
No files found.
dlls/mshtml/tests/dom.c
View file @
512d0924
...
...
@@ -361,6 +361,9 @@ static void test_txtrange(IHTMLDocument2 *doc)
test_range_expand
(
range
,
wordW
,
VARIANT_TRUE
,
"test "
);
test_range_put_text
(
range
,
wordW
);
test_range_text
(
body_range
,
"wordabc 123
\r\n
it's text"
);
test_range_text
(
range
,
NULL
);
test_range_moveend
(
range
,
characterW
,
3
,
3
);
test_range_text
(
range
,
"abc"
);
IHTMLTxtRange_Release
(
range
);
IHTMLTxtRange_Release
(
body_range
);
...
...
dlls/mshtml/txtrange.c
View file @
512d0924
...
...
@@ -893,7 +893,11 @@ static HRESULT WINAPI HTMLTxtRange_put_text(IHTMLTxtRange *iface, BSTR v)
if
(
NS_FAILED
(
nsres
))
ERR
(
"InsertNode failed: %08x
\n
"
,
nsres
);
return
S_OK
;
nsres
=
nsIDOMRange_SetEndAfter
(
This
->
nsrange
,
(
nsIDOMNode
*
)
text_node
);
if
(
NS_FAILED
(
nsres
))
ERR
(
"SetEndAfter failed: %08x
\n
"
,
nsres
);
return
IHTMLTxtRange_collapse
(
HTMLTXTRANGE
(
This
),
VARIANT_FALSE
);
}
static
HRESULT
WINAPI
HTMLTxtRange_get_text
(
IHTMLTxtRange
*
iface
,
BSTR
*
p
)
...
...
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