vcl/source/window/window2.cxx |    2 ++
 1 file changed, 2 insertions(+)

New commits:
commit 6f3334a204193f9e47f60f45b17dd102148ed586
Author:     Caolán McNamara <caolan.mcnam...@collabora.com>
AuthorDate: Thu Oct 26 12:30:12 2023 +0100
Commit:     Caolán McNamara <caolan.mcnam...@collabora.com>
CommitDate: Thu Oct 26 15:51:53 2023 +0200

    add warning for suspicious potential double-tracking
    
    Change-Id: I0fa7b2a108350a394b5d774aaed899215bdb20de
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/158501
    Tested-by: Jenkins
    Reviewed-by: Caolán McNamara <caolan.mcnam...@collabora.com>

diff --git a/vcl/source/window/window2.cxx b/vcl/source/window/window2.cxx
index c9720139585d..1551bad52cd1 100644
--- a/vcl/source/window/window2.cxx
+++ b/vcl/source/window/window2.cxx
@@ -265,6 +265,8 @@ void Window::StartTracking( StartTrackingFlags nFlags )
             pTrackWin->EndTracking( TrackingEventFlags::Cancel );
     }
 
+    SAL_WARN_IF(pSVData->mpWinData->mpTrackTimer, "vcl", "StartTracking called 
while TrackerTimer still running");
+
     if ( !mpWindowImpl->mbUseFrameData &&
          (nFlags & (StartTrackingFlags::ScrollRepeat | 
StartTrackingFlags::ButtonRepeat)) )
     {

Reply via email to