OSDN Git Service

BUG: [ 1614558 ] Goto line doesn't work when word wrap is enabled(2)
authorTakashi Sawanaka <sdottaka@users.sourceforge.net>
Thu, 23 Aug 2007 14:05:13 +0000 (14:05 +0000)
committerTakashi Sawanaka <sdottaka@users.sourceforge.net>
Thu, 23 Aug 2007 14:05:13 +0000 (14:05 +0000)
 - Fixed scrolling bug

Src/MergeEditView.cpp

index a7c2143..e1a542f 100644 (file)
@@ -2540,8 +2540,8 @@ void CMergeEditView::GotoLine(UINT nLine, BOOL bRealLine, int pane)
        if (nScrollLine < 0)
                nScrollLine = 0;
        
-       pLeftView->ScrollToLine(nScrollLine);
-       pRightView->ScrollToLine(nScrollLine);
+       pLeftView->ScrollToSubLine(nScrollLine);
+       pRightView->ScrollToSubLine(nScrollLine);
        pLeftView->SetCursorPos(ptPos);
        pRightView->SetCursorPos(ptPos);
        pLeftView->SetAnchor(ptPos);