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. --- gtk/ScintillaGTK.cxx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'gtk') diff --git a/gtk/ScintillaGTK.cxx b/gtk/ScintillaGTK.cxx index 801fc734a..8ec420e05 100644 --- a/gtk/ScintillaGTK.cxx +++ b/gtk/ScintillaGTK.cxx @@ -2495,8 +2495,7 @@ gboolean ScintillaGTK::DragMotionThis(GdkDragContext *context, gint x, gint y, guint dragtime) { try { Point npt(x, y); - SetDragPosition(SPositionFromLocation(npt, false, false, - ((virtualSpaceOptions & SCVS_USERACCESSIBLE) != 0))); + SetDragPosition(SPositionFromLocation(npt, false, false, UserVirtualSpace())); GdkDragAction preferredAction = context->suggested_action; SelectionPosition pos = SPositionFromLocation(npt); if ((inDragDrop == ddDragging) && (PositionInSelection(pos.Position()))) { -- cgit v1.2.3