From 0bbc34b6f2d210e44b09ec73480a966645aa21b4 Mon Sep 17 00:00:00 2001 From: Stephan Witt Date: Fri, 14 Feb 2020 12:11:10 +0100 Subject: [PATCH] Avoid uninitialized position variables in case of current inset not doing the assignment --- src/frontends/qt/GuiCompleter.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/frontends/qt/GuiCompleter.cpp b/src/frontends/qt/GuiCompleter.cpp index 1c91fb78a6..6ab81ce207 100644 --- a/src/frontends/qt/GuiCompleter.cpp +++ b/src/frontends/qt/GuiCompleter.cpp @@ -438,8 +438,8 @@ void GuiCompleter::asyncUpdatePopup() // get dimensions of completion prefix Dimension dim; - int x; - int y; + int x = 0; + int y = 0; cur.inset().completionPosAndDim(cur, x, y, dim); // and calculate the rect of the popup -- 2.39.5