Toolbar Numbered Lists button bug


Subject: Toolbar Numbered Lists button bug
From: Mike Nordell (tamlin@algonet.se)
Date: Mon Jul 16 2001 - 02:38:55 CDT


Can anyone please check if this is a Win32 only?

New document, click the Numbered Lists toolbar button. Type a single letter
and then press return three times. In at least Win32 the toolbar button
stays depressed.

fl_BlockLayout::StopList calls pView->_generalUpdate()
FV_View::_generalUpdate calls
    notifyListeners(AV_CHG_TYPING | AV_CHG_FMTCHAR | AV_CHG_FMTBLOCK);

but FV_View::notifyListeners masks all hint flags so when it's calling
AV_View::notifyListeners (which is the one taking care of updating
toolbars), AV_View::notifyListeners recognizes "Hey, no 'hint'. Let's just
return".

It seems that FV_View::notifyListeners falsely handles these 'hints' itself,
never letting AV_View::notifyListeners handle the needed update.

/Mike
PS: Speaking of FV_View::notifyListeners I cant help myself but commenting
again that this function still does loads and loads more than simply
notifying any listeners.



This archive was generated by hypermail 2b25 : Mon Jul 16 2001 - 02:37:06 CDT