missing break; and put a '}' where it should be

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@1066 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Allan Rae 2000-10-02 06:11:02 +00:00
parent 0e86ed5583
commit eb1be4a02b
2 changed files with 6 additions and 1 deletions

View File

@ -1,5 +1,8 @@
2000-10-02 Allan Rae <rae@lyx.org>
* src/lyxfunc.C (Dispatch): missing break; and moved the '}' for
LFUN_UNKNOWN_ACTION: so it doesn't wrap around default:.
* src/frontends/xforms/FormPreferences.[Ch] (restore): D'oh.
Left this one out by accident.

View File

@ -2921,6 +2921,7 @@ string const LyXFunc::Dispatch(int ac,
// a zoom change.
textcache.clear();
}
break;
case LFUN_SET_COLOR:
{
@ -3000,10 +3001,11 @@ string const LyXFunc::Dispatch(int ac,
setErrorMessage(N_("Unknown action"));
}
break;
}
default:
lyxerr << "A truly unknown func!" << endl;
break;
}
} // end of switch
exit_with_message: