Update of /cvsroot/mahogany/M/src/modules
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv31011/src/modules
Modified Files:
TextViewer.cpp
Log Message:
don't activate the link when we are simply selecting text in the viewer
Index: TextViewer.cpp
===================================================================
RCS file: /cvsroot/mahogany/M/src/modules/TextViewer.cpp,v
retrieving revision 1.56
retrieving revision 1.57
diff -b -u -2 -r1.56 -r1.57
--- TextViewer.cpp 12 Jul 2004 20:53:22 -0000 1.56
+++ TextViewer.cpp 17 Jul 2004 21:32:53 -0000 1.57
@@ -480,4 +480,15 @@
else if ( event.LeftUp() )
{
+ // we don't want to count releasing the mouse to finish selecting
+ // something as a click as otherwise we wouldn't be able to select
+ // a link without activating it
+ long from,
+ to;
+
+ GetSelection(&from, &to);
+ if ( from != to )
+ return false;
+
+
// the mouse cursor is captured by the text control when we're here
// and this results in very strange behaviour if we open a window
-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click
_______________________________________________
Mahogany-cvsupdates mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/mahogany-cvsupdates