GuiToolbar.cpp: avoid a some compiler warning (already fixed in trunk)

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@34088 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Uwe Stöhr 2010-04-08 10:06:32 +00:00
parent 96bde246b3
commit 9c49140a93

View File

@ -905,10 +905,10 @@ void GuiToolbar::update(bool in_math, bool in_table, bool in_review,
bool in_mathmacrotemplate)
{
if (visibility_ & Toolbars::AUTO) {
bool show_it = in_math && (visibility_ & Toolbars::MATH)
|| in_table && (visibility_ & Toolbars::TABLE)
|| in_review && (visibility_ & Toolbars::REVIEW)
|| in_mathmacrotemplate && (visibility_ & Toolbars::MATHMACROTEMPLATE);
bool show_it = (in_math && (visibility_ & Toolbars::MATH))
|| (in_table && (visibility_ & Toolbars::TABLE))
|| (in_review && (visibility_ & Toolbars::REVIEW))
|| (in_mathmacrotemplate && (visibility_ & Toolbars::MATHMACROTEMPLATE));
setVisible(show_it);
}