On 22/06/2009 23:01, Pavel Sanda wrote:
you...@lyx.org wrote:
Author: younes
Date: Mon Jun 22 22:16:08 2009
New Revision: 30225
URL: http://www.lyx.org/trac/changeset/30225

Log:
Bug fix?

Modified:
    lyx-devel/trunk/src/frontends/qt4/GuiView.cpp

Modified: lyx-devel/trunk/src/frontends/qt4/GuiView.cpp
==============================================================================
--- lyx-devel/trunk/src/frontends/qt4/GuiView.cpp       Mon Jun 22 19:40:09 
2009        (r30224)
+++ lyx-devel/trunk/src/frontends/qt4/GuiView.cpp       Mon Jun 22 22:16:08 
2009        (r30225)
@@ -394,11 +394,11 @@

        // 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. At least setup title and enabled state.
                // Visibility will be adjusted by restoreState below.
                d->prepareView();
-       if ((d = findOrBuild("view-source", true)))
+       if (d = findOrBuild("view-source", true))
                d->prepareView();

        if (!restoreState(settings.value("layout").toByteArray(), 0))


those parenthesis were to shutup warning about assigment which gcc spits out...
so i reverted it back...

OK but the bug fix was about the semi-colon at the end of the if:

-       if ((d = findOrBuild("toc", true)));

Abdel.



pavel

Reply via email to