PATCH: trivial fix for bug # 4878

From: william.lachance@sympatico.ca
Date: Sat Sep 13 2003 - 01:57:20 EDT

  • Next message: ericzen: "Re: ATTN: Tree Tagged. Tarballs created."

    The hard part here was tracing the problem. I think this was just an honest mistake: the line of code in question goes way back to Tomas working around another bug with our text formatting. Let me know if it's o.k. to commit.

    Index: fv_View.cpp
    ===================================================================
    RCS file: /cvsroot/abi/src/text/fmt/xp/fv_View.cpp,v
    retrieving revision 1.818
    diff -u -r1.818 fv_View.cpp
    --- fv_View.cpp 2 Sep 2003 01:25:25 -0000 1.818
    +++ fv_View.cpp 13 Sep 2003 06:06:57 -0000
    @@ -2776,7 +2776,7 @@
                    PT_DocPosition posBL1 = pBL1->getPosition(false);
      
                    fp_Run * pLastRun2 = static_cast<fp_Line *>(pBL2->getLastContainer())->getLastRun();
    - PT_DocPosition posBL2 = pBL2->getPosition(false) + pLastRun2->getBlockOffset() + pLastRun2->getLength() - 1;
    + PT_DocPosition posBL2 = pBL2->getPosition(false) + pLastRun2->getBlockOffset() + pLastRun2->getLength();
      
                    if(posBL1 == posStart)
                    {

    William Lachance
    william.lachance@sympatico.ca



    This archive was generated by hypermail 2.1.4 : Sat Sep 13 2003 - 02:11:41 EDT