commit 6dab8739eba3075965c416064c1f43ced10ee3e5
Author: Stephan Witt <[email protected]>
Date: Fri Feb 14 12:11:10 2020 +0100
Avoid uninitialized position variables in case of current inset not doing
the assignment
---
src/frontends/qt/GuiCompleter.cpp | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/frontends/qt/GuiCompleter.cpp
b/src/frontends/qt/GuiCompleter.cpp
index 1c91fb7..6ab81ce 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
--
lyx-cvs mailing list
[email protected]
http://lists.lyx.org/mailman/listinfo/lyx-cvs