>The real fix that I can think of requires the following >changes: >1) moving awareness of the difference between the currentWorkArea() >[ the one with focus, i.e., document, find, or replace WAs ] and the >currentMainWorkArea() [ the one with the main document being edited ] >from GuiView.cpp (as it is now) to LyXView.cpp (or other non-qt-specific >classes);
What do you mean with "awareness" and "non-qt-specific classes" ? I think GuiView is the appropriate place to handle the workareas. The first thing I would do is to clarify the comments in GuiView.h. I've been staring at these functions for 10 minutes and then I decided I had no clue what was the difference between currentWorkArea and currentMainWorkArea. It would have helped me a lot if something was said about EmbeddedWorkAreas (I just didn't think about these). Vinent