From 05c876568a452d24c480631caf74d0176dd9f9c0 Mon Sep 17 00:00:00 2001 From: Richard Heck Date: Sat, 16 Dec 2017 00:50:35 -0500 Subject: [PATCH] Fix #10887 compiler warnings. --- src/frontends/qt4/GuiWorkArea.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/frontends/qt4/GuiWorkArea.cpp b/src/frontends/qt4/GuiWorkArea.cpp index 0df7b65c78..3d169d02ee 100644 --- a/src/frontends/qt4/GuiWorkArea.cpp +++ b/src/frontends/qt4/GuiWorkArea.cpp @@ -751,7 +751,7 @@ void GuiWorkArea::contextMenuEvent(QContextMenuEvent * e) if (inset && inset->asInsetMath()) --pos.rx(); else if (cur.pos() > 0) { - Inset * inset = cur.paragraph().getInset(cur.pos() - 1); + inset = cur.paragraph().getInset(cur.pos() - 1); if (inset) ++pos.rx(); }