user32: Don't repaint the caret in SetCaretPos if the position doesn't change.

This commit is contained in:
Alexandre Julliard 2010-05-23 09:26:05 +02:00
parent 84412cb0f5
commit 5702a941ad
1 changed files with 1 additions and 1 deletions

View File

@ -269,7 +269,7 @@ BOOL WINAPI SetCaretPos( INT x, INT y )
}
}
SERVER_END_REQ;
if (ret && !hidden)
if (ret && !hidden && (x != r.left || y != r.top))
{
if (old_state) CARET_DisplayCaret( hwnd, &r );
r.right += x - r.left;