commit: Fix bug 2933.

From: Martin Sevior (msevior@mccubbin.ph.unimelb.edu.au)
Date: Thu Mar 21 2002 - 04:45:33 EST

  • Next message: Tomas Frydrych: "commit: ap_EditMethods.cpp"

    CVS: ----------------------------------------------------------------------
    CVS: Enter Log. Lines beginning with `CVS:' are removed automatically
    CVS:
    CVS: Committing in .
    CVS:
    CVS: Modified Files:
    CVS: src/text/fmt/xp/fl_BlockLayout.cpp
    CVS: src/text/fmt/xp/fl_Squiggles.cpp
    CVS: src/text/fmt/xp/fl_Squiggles.h
    CVS: ----------------------------------------------------------------------
    fix bug 2933. AbiCrashes on edit header.

    The code in fl_Squggles holds a cache of the length of the block. When
    text is deleted the PT gets reduces but fl_Squiggles attempts to do stuff
    before updating its cahces. It tries to acces peicetable locations outside
    the range of atual text.

    The solution was to check the document bounds and if the position of the
    last place in the document wis past the end of document adjust it to make
    it back to something sane.

    Cheers

    Martin



    This archive was generated by hypermail 2.1.4 : Thu Mar 21 2002 - 04:45:48 EST