Update of /cvsroot/mahogany/M/src/modules
In directory sc8-pr-cvs1:/tmp/cvs-serv22370/src/modules

Modified Files:
        HtmlViewer.cpp 
Log Message:
fixed handling of left click (worked as a right one)

Index: HtmlViewer.cpp
===================================================================
RCS file: /cvsroot/mahogany/M/src/modules/HtmlViewer.cpp,v
retrieving revision 1.59
retrieving revision 1.60
diff -b -u -2 -r1.59 -r1.60
--- HtmlViewer.cpp      10 Jan 2004 18:49:24 -0000      1.59
+++ HtmlViewer.cpp      13 Jan 2004 23:24:00 -0000      1.60
@@ -206,10 +206,11 @@
 
                 if ( enc == wxFONTENCODING_SYSTEM
-#if wxUSE_UNICODE
-                   )
-#else
-                     || enc == m_WParser->GetInputEncoding() )
+#if !wxUSE_UNICODE
+                     || enc == m_WParser->GetInputEncoding()
 #endif
-                   return FALSE;
+                   )
+                {
+                   return false;
+                }
 
 #if !wxUSE_UNICODE
@@ -221,5 +222,5 @@
         }
 
-        return FALSE;
+        return false;
     }
 
@@ -531,5 +532,6 @@
       m_viewer->GetMessageView()->DoMouseCommand
                                   (
-                                    event.LeftDown() ? WXMENU_LAYOUT_DBLCLICK
+                                    event.GetEventType() == wxEVT_LEFT_UP
+                                       ? WXMENU_LAYOUT_DBLCLICK
                                                      : WXMENU_LAYOUT_RCLICK,
                                     ci,



-------------------------------------------------------
This SF.net email is sponsored by: Perforce Software.
Perforce is the Fast Software Configuration Management System offering
advanced branching capabilities and atomic changes on 50+ platforms.
Free Eval! http://www.perforce.com/perforce/loadprog.html
_______________________________________________
Mahogany-cvsupdates mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/mahogany-cvsupdates

Reply via email to