gcc warning...

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27509 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Abdelrazak Younes 2008-11-15 23:04:43 +00:00
parent 0933ba6880
commit e55abfd359

View File

@ -892,10 +892,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);
}