mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-09 18:31:04 +00:00
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:
parent
aabd587fef
commit
78874e5f27
@ -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
|
||||
|
@ -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 &);
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user