summaryrefslogtreecommitdiff
path: root/vcl/source/window/window2.cxx
diff options
context:
space:
mode:
authorCaolán McNamara <caolan.mcnamara@collabora.com>2023-10-26 12:30:12 +0100
committerCaolán McNamara <caolan.mcnamara@collabora.com>2023-10-26 15:51:53 +0200
commit6f3334a204193f9e47f60f45b17dd102148ed586 (patch)
tree564b431bd3136b42107eebb7ef5040e2dae8b2e6 /vcl/source/window/window2.cxx
parent6eb4cce433e5c4e905910d6dfdf6fc15065a9d3e (diff)
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.mcnamara@collabora.com>
Diffstat (limited to 'vcl/source/window/window2.cxx')
-rw-r--r--vcl/source/window/window2.cxx2
1 files changed, 2 insertions, 0 deletions
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)) )
{