From 2b1c78cb539b208290adb189adccd125cef19105 Mon Sep 17 00:00:00 2001 From: Alexander Golubev Date: Tue, 19 Mar 2024 08:32:55 +0300 Subject: TQTextEdit: add missing mightStartDrag initialization mightStartDrag might have been used uninitialized when moving mouse with pressed mouse button into window. Signed-off-by: Alexander Golubev --- src/widgets/qtextedit.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src/widgets') diff --git a/src/widgets/qtextedit.cpp b/src/widgets/qtextedit.cpp index 88a727f66..75e54f112 100644 --- a/src/widgets/qtextedit.cpp +++ b/src/widgets/qtextedit.cpp @@ -968,6 +968,7 @@ void TQTextEdit::init() wrapMode = WidgetWidth; wrapWidth = -1; wPolicy = AtWhiteSpace; + mightStartDrag = FALSE; inDnD = FALSE; doc->setFormatter( new TQTextFormatterBreakWords ); doc->formatCollection()->defaultFormat()->setFont( TQScrollView::font() ); -- cgit v1.2.1