]> git.saurik.com Git - wxWidgets.git/blobdiff - contrib/src/stc/ScintillaWX.cpp
Comment out a debug printf
[wxWidgets.git] / contrib / src / stc / ScintillaWX.cpp
index 10859100d6bd296dd46329734e0a115fa9e7520a..1bf2c8800a92d0346e31d446c55a1be510d5a0ad 100644 (file)
@@ -80,6 +80,10 @@ public:
             m_ct = ct;
         }
 
+    ~wxSTCCallTip() {
+        if (HasCapture()) ReleaseMouse();
+    }
+
     void OnPaint(wxPaintEvent& evt) {
         wxPaintDC dc(this);
         Surface* surfaceWindow = Surface::Allocate();
@@ -106,12 +110,10 @@ public:
 
     virtual bool Show( bool show = TRUE ) {
         bool retval = wxSTCCallTipBase::Show(show);
-        if (show) {
+        if (show)
             CaptureMouse();
-        }
-        else {
+        else
             if (HasCapture()) ReleaseMouse();
-        }
         return retval;
     }