When zooming in/out with [Ctrl] + [Mouse Wheel], document WA's font is immediately updated, but if the Advanced F&R dialog is shown, its own WAs' font (find WA and replace WA) is not immediately updated, but delayed until the next editing action.

This commit fixes such behaviour, and performs the update immediately.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32794 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Tommaso Cucinotta 2010-01-06 18:36:13 +00:00
parent aabd587fef
commit 78874e5f27
3 changed files with 17 additions and 4 deletions

View File

@ -336,4 +336,17 @@ bool BufferList::releaseChild(Buffer * parent, Buffer * child)
}
void BufferList::changed() const
{
BufferStorage::const_iterator it = bstore.begin();
BufferStorage::const_iterator end = bstore.end();
for (; it != end; ++it)
(*it)->changed();
it = binternal.begin();
end = binternal.end();
for (; it != end; ++it)
(*it)->changed();
}
} // namespace lyx

View File

@ -108,6 +108,9 @@ public:
/// reset current author for all buffers
void setCurrentAuthor(docstring const & name, docstring const & email);
/// Call changed() on all buffers, internal or not
void changed() const;
private:
/// noncopiable
BufferList(BufferList const &);

View File

@ -949,10 +949,7 @@ void GuiApplication::dispatch(FuncRequest const & cmd, DispatchResult & dr)
// Set current_view_ to zero to forbid GuiWorkArea::redraw()
// to skip the refresh.
current_view_ = 0;
BufferList::iterator it = theBufferList().begin();
BufferList::iterator const end = theBufferList().end();
for (; it != end; ++it)
(*it)->changed();
theBufferList().changed();
// Restore current_view_
current_view_ = view;
break;