> > 1. open document with some (sub(sub))section structure and full uncollapse
> >    the structure in outline panel (ie the slider goes to the mostright 
> > position).
> > 2. copy and paste something in your document and structure in outline get
> >    completely collapsed. the same goes in case of changing environment. may 
> > be
> >    some other changes cause it too.
> 
> fyi http://bugzilla.lyx.org/show_bug.cgi?id=3740

at least i made some workaround that setTreeDepth is called when updating ToC,
so when you move or edit the ToC get back to its state.

strange is that when the critical edit operation (see above) happens 
TocWidget::updateView()
is properly called and even with the included setTreeDepth call, ToC remain 
wrong - new update
call is needed.

pavel
diff --git a/src/frontends/qt4/TocWidget.cpp b/src/frontends/qt4/TocWidget.cpp
index c51740b..5195256 100644
--- a/src/frontends/qt4/TocWidget.cpp
+++ b/src/frontends/qt4/TocWidget.cpp
@@ -184,6 +185,7 @@ void TocWidget::select(QModelIndex const & index)
        tocTV->setCurrentIndex(index);
        tocTV->scrollTo(index);
        reconnectSelectionModel();
+       setTreeDepth(depth_);
 }
 
 

Reply via email to