From: Stephan Witt Date: Fri, 14 Feb 2020 11:11:10 +0000 (+0100) Subject: Avoid uninitialized position variables in case of current inset not doing the assignment X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=0bbc34b6f2d210e44b09ec73480a966645aa21b4;p=features.git Avoid uninitialized position variables in case of current inset not doing the assignment --- 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