Return raw text, not markup, from wxWebViewWebKit::GetSelectedText().
Under OS X the markup string was returned, unlike in all the other ports, resulting in a unit test failure, fix this. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74540 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -645,10 +645,11 @@ void wxWebViewWebKit::SetScrollPos(int pos)
|
||||
|
||||
wxString wxWebViewWebKit::GetSelectedText() const
|
||||
{
|
||||
NSString* selection = [[m_webView selectedDOMRange] markupString];
|
||||
if (!selection) return wxEmptyString;
|
||||
DOMRange* dr = [m_webView selectedDOMRange];
|
||||
if ( !dr )
|
||||
return wxString();
|
||||
|
||||
return wxStringWithNSString(selection);
|
||||
return wxStringWithNSString([dr toString]);
|
||||
}
|
||||
|
||||
void wxWebViewWebKit::RunScript(const wxString& javascript)
|
||||
|
Reference in New Issue
Block a user