On 03.08.2017 07:32, Scott Kostyshak wrote:
On Tue, Jul 25, 2017 at 08:23:39AM +1000, racoon wrote:
On 25.07.2017 07:49, Scott Kostyshak wrote:
On Sat, Jul 22, 2017 at 07:41:32PM +1000, racoon wrote:
On 22.07.2017 08:38, Scott Kostyshak wrote:

No, sorry. Most importantly, I do not understand what the debug messages
mean. Unfortunately, I also do not have much time at my hands at the moment
either. I am happy to help though, if something in my code is unclear.

No problem, Daniel. Thanks for the reply. I'll take a look at it
hopefully within the next week.

Thanks Scott.

The issue comes from the call to dispatch, in the following part of your commit:

  bool GuiView::restoreLayout()
  {
         QSettings settings;
+       lyxrc.currentZoom = settings.value("zoom", lyxrc.zoom).toInt();
+       lyx::dispatch(FuncRequest(LFUN_BUFFER_ZOOM, 
convert<docstring>(lyxrc.currentZoom)));
         settings.beginGroup("views");
         settings.beginGroup(QString::number(id_));
         QString const icon_key = "icon_size";

The reason the message is shown on startup for me is that there is no buffer
open. What is the purpose of having the dispatch there? Isn't the zoom
automatically set (via some other mechanism) when a buffer is opened?

Thanks. It seem that you are correct. Unfortunately, I did not find where the zoom is set but I tested it without the dispatch and it seems to work totally fine. Would you mind removing the dispatch line then?

Daniel

Reply via email to