mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-18 21:45:24 +00:00
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:
parent
96bde246b3
commit
9c49140a93
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user