Avoid uninitialized position variables in case of current inset not doing the assignment

This commit is contained in:
Stephan Witt 2020-02-14 12:11:10 +01:00
parent ab877352e7
commit 6dab8739eb

View 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