Glitch in LFUN

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33476 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Pavel Sanda 2010-02-15 09:05:16 +00:00
parent 39110501c3
commit c30a82d94d

View File

@ -2591,7 +2591,7 @@ void GuiView::dispatchVC(FuncRequest const & cmd)
f2 = buffer->absFileName(); f2 = buffer->absFileName();
} else { } else {
string rev2 = cmd.getArg(1); string rev2 = cmd.getArg(1);
if (rev2.empty() || !isStrInt(rev2)) if (rev2.empty())
break; break;
// f2 // f2
if (!buffer->lyxvc().prepareFileRevision(rev2, f2)) if (!buffer->lyxvc().prepareFileRevision(rev2, f2))
@ -2600,6 +2600,7 @@ void GuiView::dispatchVC(FuncRequest const & cmd)
// FIXME We need to call comparison feature here // FIXME We need to call comparison feature here
// I'm not sure whether with or without dialog. // I'm not sure whether with or without dialog.
// (Gui)Compare::compare(f1, f2); // (Gui)Compare::compare(f1, f2);
break;
} }
default: default:
@ -3127,6 +3128,7 @@ void GuiView::dispatch(FuncRequest const & cmd, DispatchResult & dr)
case LFUN_VC_REVERT: case LFUN_VC_REVERT:
case LFUN_VC_UNDO_LAST: case LFUN_VC_UNDO_LAST:
case LFUN_VC_COMMAND: case LFUN_VC_COMMAND:
case LFUN_VC_COMPARE:
dispatchVC(cmd); dispatchVC(cmd);
break; break;