dbertoni    01/09/04 09:48:47

  Modified:    c/src/PlatformSupport DOMStringHelper.cpp
  Log:
  Fix for bug 3386.
  
  Revision  Changes    Path
  1.61      +5 -5      xml-xalan/c/src/PlatformSupport/DOMStringHelper.cpp
  
  Index: DOMStringHelper.cpp
  ===================================================================
  RCS file: /home/cvs/xml-xalan/c/src/PlatformSupport/DOMStringHelper.cpp,v
  retrieving revision 1.60
  retrieving revision 1.61
  diff -u -r1.60 -r1.61
  --- DOMStringHelper.cpp       2001/08/14 16:22:01     1.60
  +++ DOMStringHelper.cpp       2001/09/04 16:48:47     1.61
  @@ -1456,11 +1456,11 @@
   {
        if (DoubleSupport::isNaN(theDouble) == true)
        {
  -             theResult = theNaNString;
  +             append(theResult, theNaNString);
        }
        else if (DoubleSupport::isPositiveInfinity(theDouble) == true)
        {
  -             theResult = thePositiveInfinityString;
  +             append(theResult, thePositiveInfinityString);
        }
        else if (DoubleSupport::isNegativeInfinity(theDouble) == true)
        {
  @@ -1468,11 +1468,11 @@
        }
        else if (DoubleSupport::isPositiveZero(theDouble) == true)
        {
  -             theResult = thePositiveZeroString;
  +             append(theResult, thePositiveZeroString);
        }
        else if (DoubleSupport::isNegativeZero(theDouble) == true)
        {
  -             theResult = theNegativeZeroString;
  +             append(theResult, theNegativeZeroString);
        }
        else if (long(theDouble) == theDouble)
        {
  @@ -1507,7 +1507,7 @@
                        ++theCharsWritten;
                }
   
  -             reserve(theResult, theCharsWritten + 1);
  +             reserve(theResult, length(theResult) + theCharsWritten);
   
                TranscodeNumber(
                                theBuffer,
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to