mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-26 11:16:55 +00:00
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:
parent
b2512f44d6
commit
e1a98bc7d3
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user