From 46c3c53a3c290f8757931a9f30bbf5f9577dd685 Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Tue, 7 Jul 2009 11:52:09 +0000 Subject: Using the last style on a line to determine the width of a virtual space rather than use the default style. This adapts better for comments which use a different font. --- win32/ScintillaWin.cxx | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'win32') diff --git a/win32/ScintillaWin.cxx b/win32/ScintillaWin.cxx index e24d32bde..76ccbeb40 100644 --- a/win32/ScintillaWin.cxx +++ b/win32/ScintillaWin.cxx @@ -2164,8 +2164,7 @@ STDMETHODIMP ScintillaWin::DragOver(DWORD grfKeyState, POINTL pt, PDWORD pdwEffe // Update the cursor. POINT rpt = {pt.x, pt.y}; ::ScreenToClient(MainHWND(), &rpt); - SetDragPosition(SPositionFromLocation(Point(rpt.x, rpt.y), false, false, - ((virtualSpaceOptions & SCVS_USERACCESSIBLE) != 0))); + SetDragPosition(SPositionFromLocation(Point(rpt.x, rpt.y), false, false, UserVirtualSpace())); return S_OK; } catch (...) { @@ -2250,8 +2249,7 @@ STDMETHODIMP ScintillaWin::Drop(LPDATAOBJECT pIDataSource, DWORD grfKeyState, POINT rpt = {pt.x, pt.y}; ::ScreenToClient(MainHWND(), &rpt); - SelectionPosition movePos = SPositionFromLocation(Point(rpt.x, rpt.y), false, false, - ((virtualSpaceOptions & SCVS_USERACCESSIBLE) != 0)); + SelectionPosition movePos = SPositionFromLocation(Point(rpt.x, rpt.y), false, false, UserVirtualSpace()); DropAt(movePos, data, *pdwEffect == DROPEFFECT_MOVE, hrRectangular == S_OK); -- cgit v1.2.3