OSDN Git Service

Fix sf.net ticket #2215: Cancelation of selection range with reverse indent
authorTakashi Sawanaka <sdottaka@users.sourceforge.net>
Mon, 18 Feb 2019 22:42:53 +0000 (07:42 +0900)
committerTakashi Sawanaka <sdottaka@users.sourceforge.net>
Mon, 18 Feb 2019 22:42:53 +0000 (07:42 +0900)
(Revert the commit "Improve handling of last lines in files (4) (b3d10de90b11)" partially)

Externals/crystaledit/editlib/ccrystaltextbuffer.cpp

index 25bc0e5..b56fe6f 100644 (file)
@@ -120,17 +120,13 @@ RecalcPoint (CPoint & ptPoint)
   if (ptPoint.y > m_ptEnd.y)
     {
       ptPoint.y -= (m_ptEnd.y - m_ptStart.y);
-         ptPoint.y = min(ptPoint.y, m_ptEnd.y);
-         if (ptPoint.y < m_ptEnd.y)
-               return;
+         return;
     }
   if (ptPoint.y == m_ptEnd.y && ptPoint.x >= m_ptEnd.x)
     {
       ptPoint.y = m_ptStart.y;
       ptPoint.x = m_ptStart.x + (ptPoint.x - m_ptEnd.x);
-         ptPoint.x = min(ptPoint.x, m_ptEnd.x);
-         if( ptPoint.x < m_ptEnd.x)
-               return;
+         return;
     }
   if (ptPoint.y == m_ptStart.y)
     {