Commit: Fix nasty assert, crash

From: Dom Lachowicz (domlachowicz@yahoo.com)
Date: Wed Feb 26 2003 - 18:57:33 EST

  • Next message: Dom Lachowicz: "Commit: bug 3297"

    --to=whatver on the command line was asserting like
    nobody's business, trying to get the 1st ([0]) element
    of an empty listener vector. Since we don't need any
    valid listeners in the queue for --to like operations,
    just return NULL in this case.

    Crash was exposed by the layout units patch - race
    condition in top and left ruler's expose events.
    Specifying a file on the command line caused it to try
    to draw rulers before the rulers had graphics classes.
    Bad joo-joo. In these cases, it's safe to simply
    continue because the graphics classes will get
    instantiated about a billionth of a second later and
    then draw properly henceforth.

    Dom

    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_TableLayout.cpp
    CVS: src/text/ptbl/xp/pf_Frag_Strux.cpp
    CVS: src/text/ptbl/xp/pt_PT_Listener.cpp
    CVS: src/wp/ap/unix/ap_UnixLeftRuler.cpp
    CVS: src/wp/ap/unix/ap_UnixTopRuler.cpp
    CVS:
    ----------------------------------------------------------------------

    __________________________________________________
    Do you Yahoo!?
    Yahoo! Tax Center - forms, calculators, tips, more
    http://taxes.yahoo.com/



    This archive was generated by hypermail 2.1.4 : Wed Feb 26 2003 - 19:03:16 EST