]> git.lyx.org Git - features.git/commitdiff
RCS has different revision numbering
authorPavel Sanda <sanda@lyx.org>
Tue, 7 Sep 2010 11:29:07 +0000 (11:29 +0000)
committerPavel Sanda <sanda@lyx.org>
Tue, 7 Sep 2010 11:29:07 +0000 (11:29 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35309 a592a061-630c-0410-9148-cb99ea01b6c8

src/frontends/qt4/GuiCompareHistory.cpp

index d33103244a883ea4be070dc8baa2f544746ea5ed..99bd404c0858ce6cf21a34a27aefaafb22a48c06 100644 (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);