compilation warning: add exta braces around assignment

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28512 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Jean-Marc Lasgouttes 2009-02-16 10:08:18 +00:00
parent f1c6bfdc9d
commit 53dc4ae015

View File

@ -389,10 +389,10 @@ bool GuiView::restoreLayout()
// Allow the toc and view-source dock widget to be restored if needed.
Dialog *d;
if (d = findOrBuild("toc", true))
if ((d = findOrBuild("toc", true)))
// see bug 5082
d->showView();
if (d = findOrBuild("view-source", true))
if ((d = findOrBuild("view-source", true)))
d->showView();
if (!restoreState(settings.value("layout").toByteArray(), 0))