OSDN Git Service
(root)
/
winmerge-jp
/
winmerge-jp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6ff9eca
)
Cosmetic fix: CCrystalEditView::ShowDropIndicator() was at times unexpectedly hiding...
author
Jochen Tucht
<jtuc@users.sourceforge.net>
Mon, 11 Feb 2008 16:38:26 +0000
(16:38 +0000)
committer
Jochen Tucht
<jtuc@users.sourceforge.net>
Mon, 11 Feb 2008 16:38:26 +0000
(16:38 +0000)
Src/editlib/ccrystaleditview.cpp
patch
|
blob
|
history
diff --git
a/Src/editlib/ccrystaleditview.cpp
b/Src/editlib/ccrystaleditview.cpp
index
dbf2ce9
..
4e987fe
100644
(file)
--- a/
Src/editlib/ccrystaleditview.cpp
+++ b/
Src/editlib/ccrystaleditview.cpp
@@
-1201,9
+1201,11
@@
ShowDropIndicator (const CPoint & point)
::CreateCaret (m_hWnd, (HBITMAP) 1, 2, GetLineHeight ());
}
m_ptDropPos = ClientToText (point);
- if (m_ptDropPos.x >= m_nOffsetChar)
+ // NB: m_ptDropPos.x is index into char array, which is uncomparable to m_nOffsetChar.
+ CPoint ptCaretPos = TextToClient (m_ptDropPos);
+ if (ptCaretPos.x >= GetMarginWidth())
{
- SetCaretPos (
TextToClient (m_ptDropPos)
);
+ SetCaretPos (
ptCaretPos
);
ShowCaret ();
}
else