RCS has different revision numbering

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35309 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Pavel Sanda 2010-09-07 11:29:07 +00:00
parent b2512f44d6
commit e1a98bc7d3

View File

@ -9,6 +9,7 @@
*/
#include <config.h>
#include <support/debug.h>
#include "GuiCompareHistory.h"
@ -48,8 +49,11 @@ bool GuiCompareHistory::initialiseParams(std::string const &)
{
string revstring = lyxview().currentBufferView()->buffer().lyxvc().revisionInfo(LyXVC::File);
int rev=0;
if (prefixIs(revstring, "r"))
revstring = ltrim(revstring,"r");
string tmp;
// RCS case
if (!isStrInt(revstring))
revstring = rsplit(revstring, tmp , '.' );
if (isStrInt(revstring))
rev = convert<int>(revstring);