dbertoni    00/04/12 10:13:36

  Modified:    c/src/XSLT XSLTEngineImpl.cpp
  Log:
  Fixed bug with determining base path.
  
  Revision  Changes    Path
  1.22      +1 -1      xml-xalan/c/src/XSLT/XSLTEngineImpl.cpp
  
  Index: XSLTEngineImpl.cpp
  ===================================================================
  RCS file: /home/cvs/xml-xalan/c/src/XSLT/XSLTEngineImpl.cpp,v
  retrieving revision 1.21
  retrieving revision 1.22
  diff -u -r1.21 -r1.22
  --- XSLTEngineImpl.cpp        2000/04/11 20:05:07     1.21
  +++ XSLTEngineImpl.cpp        2000/04/12 17:13:36     1.22
  @@ -3777,7 +3777,7 @@
        const unsigned int      i1 = lastIndexOf(base,'/');
        const unsigned int      i2 = lastIndexOf(base,'\\');
   
  -     const unsigned int      i = i1 > i2 && i1 < theLength ? i1: i2;
  +     const unsigned int      i = i1 > i2 && i1 < theLength ? i1 : i2 < 
theLength ? i2 : i1;
   
        if (i < theLength)
                context = substring(base, 0, i + 1);
  
  
  

Reply via email to