| Index: fpdfsdk/src/pdfwindow/PWL_Caret.cpp
|
| diff --git a/fpdfsdk/src/pdfwindow/PWL_Caret.cpp b/fpdfsdk/src/pdfwindow/PWL_Caret.cpp
|
| index d129c2c7d3f06750df10298f147e22d5ca3339cb..75c951068a3e390b7e17fc9999cf2863b5fc1b62 100644
|
| --- a/fpdfsdk/src/pdfwindow/PWL_Caret.cpp
|
| +++ b/fpdfsdk/src/pdfwindow/PWL_Caret.cpp
|
| @@ -4,17 +4,12 @@
|
|
|
| // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
|
|
|
| -#include "fpdfsdk/include/pdfwindow/PDFWindow.h"
|
| #include "fpdfsdk/include/pdfwindow/PWL_Caret.h"
|
| #include "fpdfsdk/include/pdfwindow/PWL_Utils.h"
|
| #include "fpdfsdk/include/pdfwindow/PWL_Wnd.h"
|
|
|
| #define PWL_CARET_FLASHINTERVAL 500
|
|
|
| -//////////////////////////////////////////////////////////////////////
|
| -// Construction/Destruction
|
| -//////////////////////////////////////////////////////////////////////
|
| -
|
| CPWL_Caret::CPWL_Caret()
|
| : m_bFlash(FALSE),
|
| m_ptHead(0, 0),
|
| @@ -125,7 +120,6 @@ void CPWL_Caret::SetCaret(FX_BOOL bVisible,
|
| m_ptFoot = ptFoot;
|
|
|
| m_bFlash = TRUE;
|
| - // Move(GetCaretRect(),FALSE,TRUE);
|
| Move(m_rcInvalid, FALSE, TRUE);
|
| }
|
| } else {
|
| @@ -138,7 +132,6 @@ void CPWL_Caret::SetCaret(FX_BOOL bVisible,
|
| CPWL_Wnd::SetVisible(TRUE);
|
| m_bFlash = TRUE;
|
|
|
| - // Move(GetCaretRect(),FALSE,TRUE);
|
| Move(m_rcInvalid, FALSE, TRUE);
|
| }
|
| } else {
|
| @@ -160,6 +153,7 @@ void CPWL_Caret::InvalidateRect(CPDF_Rect* pRect) {
|
| rcRefresh.bottom -= 1;
|
|
|
| CPWL_Wnd::InvalidateRect(&rcRefresh);
|
| - } else
|
| + } else {
|
| CPWL_Wnd::InvalidateRect(pRect);
|
| + }
|
| }
|
|
|