]> git.lyx.org Git - features.git/commitdiff
missing break; and put a '}' where it should be
authorAllan Rae <rae@lyx.org>
Mon, 2 Oct 2000 06:11:02 +0000 (06:11 +0000)
committerAllan Rae <rae@lyx.org>
Mon, 2 Oct 2000 06:11:02 +0000 (06:11 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@1066 a592a061-630c-0410-9148-cb99ea01b6c8

ChangeLog
src/lyxfunc.C

index 9305c4246c7de677327c1e45df32565ee92ae5b2..742bbaa69e5a17d81b27602e050d16b14413126e 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -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.
 
index cad787a85599f02f211fa107e4054c42c962ca79..8b4e13d4975b1efb7c5d051a581a6a7ff2ae8944 100644 (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: