Add new items to top.
(This summarizes all changes to all files under Src, including Src\Languages.)
+2006-05-25 Kimmo
+ BUG: [ 1494610 ] Wrong selection in ccrystalview2.cpp
+ Analyzed by Mallato
+ Src/editlib: ccrystaltextview2.cpp
+
2006-05-25 Tim
PATCH: [ 1495017 ] Translate 'Textcolors' options to German
Src/Languages/German: MergeGerman.rc
UpdateCaret ();
}
+/**
+ * @brief Called when left mousebutton pressed down in editor.
+ * This function handles left mousebutton down in editor.
+ * @param [in] nFlags Flags indicating if virtual keys are pressed.
+ * @param [in] point Point where mousebutton is pressed.
+ */
void CCrystalTextView::
OnLButtonDown (UINT nFlags, CPoint point)
{
if (GetSubLineIndex (ptStart.y) + pos.y == GetSubLineCount() - 1)
{
// select to end of subline
- ptStart = SubLineEndToCharPos (ptStart.y, pos.y);
+ ptEnd.x = SubLineEndToCharPos (ptStart.y, pos.y);
}
else
{
int nLine, nSubLine;
GetLineBySubLine (GetSubLineIndex (ptStart.y) + pos.y + 1, nLine, nSubLine);
- ptStart.y = nLine;
- ptStart.x = SubLineHomeToCharPos (nLine, nSubLine);
+ ptEnd.y = nLine;
+ ptEnd.x = SubLineHomeToCharPos (nLine, nSubLine);
}
m_ptCursorPos = ptEnd;