]> git.lyx.org Git - features.git/commitdiff
Avoid uninitialized position variables in case of current inset not doing the assignment
authorStephan Witt <switt@lyx.org>
Fri, 14 Feb 2020 11:11:10 +0000 (12:11 +0100)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Thu, 18 Jun 2020 13:48:52 +0000 (15:48 +0200)
src/frontends/qt/GuiCompleter.cpp

index 1c91fb78a609e89585f964817c2af56b2ac9946d..6ab81ce20706d5884b69a0c603736d90e0234db1 100644 (file)
@@ -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