Jean-Marc Lasgouttes wrote:
> Juergen> Confirmed. You want a patch?
>
> Yes, please.

How about the attached? (I'm not sure if the update is also needed after the 
branches stuff, so I added it to be on the safe side).

Jürgen
? qt2/ui/IndexModuleBase.ui
Index: controllers/ControlDocument.C
===================================================================
RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/frontends/controllers/ControlDocument.C,v
retrieving revision 1.55
diff -u -r1.55 ControlDocument.C
--- controllers/ControlDocument.C	19 Apr 2005 08:56:15 -0000	1.55
+++ controllers/ControlDocument.C	15 Sep 2005 13:10:24 -0000
@@ -103,15 +103,15 @@
 	dispatch_bufferparams(kernel(), params(), LFUN_BUFFERPARAMS_APPLY);
 
 	// redo the numbering if necessary
-	if (new_secnumdepth != old_secnumdepth) {
+	if (new_secnumdepth != old_secnumdepth)
 		updateCounters(kernel().buffer());
-		kernel().bufferview()->update();
-	}
 
 	// Generate the colours requested by each new branch.
 	BranchList & branchlist = params().branchlist();
-	if (branchlist.empty())
+	if (branchlist.empty()) {
+		kernel().bufferview()->update();
 		return;
+	}
 
 	BranchList::const_iterator it = branchlist.begin();
 	BranchList::const_iterator const end = branchlist.end();
@@ -129,6 +129,8 @@
 
 	// Open insets of selected branches, close deselected ones
 	kernel().dispatch(FuncRequest(LFUN_ALL_INSETS_TOGGLE, "assign branch"));
+	// update the bufferview
+	kernel().bufferview()->update();
 }
 
 

Reply via email to