fixed misbehaving selection on some words
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@21176 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -834,7 +834,7 @@ void wxHtmlWindow::OnPaint(wxPaintEvent& WXUNUSED(event))
|
|||||||
y * wxHTML_SCROLL_STEP + rect.GetTop(),
|
y * wxHTML_SCROLL_STEP + rect.GetTop(),
|
||||||
y * wxHTML_SCROLL_STEP + rect.GetBottom(),
|
y * wxHTML_SCROLL_STEP + rect.GetBottom(),
|
||||||
rinfo);
|
rinfo);
|
||||||
|
|
||||||
dcm.SetDeviceOrigin(0,0);
|
dcm.SetDeviceOrigin(0,0);
|
||||||
dc.Blit(0, rect.GetTop(),
|
dc.Blit(0, rect.GetTop(),
|
||||||
sz.x, rect.GetBottom() - rect.GetTop() + 1,
|
sz.x, rect.GetBottom() - rect.GetTop() + 1,
|
||||||
@@ -936,7 +936,7 @@ void wxHtmlWindow::OnMouseUp(wxMouseEvent& event)
|
|||||||
|
|
||||||
|
|
||||||
void wxHtmlWindow::OnIdle(wxIdleEvent& WXUNUSED(event))
|
void wxHtmlWindow::OnIdle(wxIdleEvent& WXUNUSED(event))
|
||||||
{
|
{
|
||||||
if (m_tmpMouseMoved && (m_Cell != NULL))
|
if (m_tmpMouseMoved && (m_Cell != NULL))
|
||||||
{
|
{
|
||||||
int xc, yc, x, y;
|
int xc, yc, x, y;
|
||||||
@@ -953,6 +953,9 @@ void wxHtmlWindow::OnIdle(wxIdleEvent& WXUNUSED(event))
|
|||||||
m_tmpSelFromPos.y == y && m_tmpSelFromPos.x < x;
|
m_tmpSelFromPos.y == y && m_tmpSelFromPos.x < x;
|
||||||
|
|
||||||
if ( !m_tmpSelFromCell )
|
if ( !m_tmpSelFromCell )
|
||||||
|
m_tmpSelFromCell = m_Cell->FindCellByPos(
|
||||||
|
m_tmpSelFromPos.x,m_tmpSelFromPos.y);
|
||||||
|
if ( /*still*/ !m_tmpSelFromCell )
|
||||||
{
|
{
|
||||||
if (goingDown)
|
if (goingDown)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user